x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Attach Target Point To Actor

I am trying to attach the target point actor to my character so i can have a reference to spawn items in front of the character through a command prompt setup ingame. Simply attaching the target point when running the players blueprint in simulated mode works as intended. I am having a hard time figuring out how to set this up before hand. TIA

Product Version: UE 4.19
Tags:
more ▼

asked Jun 17 '18 at 09:23 PM in Using UE4

avatar image

Death_Dealer_33
8 1 3

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

if your just planning to use the target point as a location to spawn items then i would use a set location based off of the players location =, for instance you would get the forward vector of the character then multiply it by 150 and add the result to the actors location, that would give you a a location 150units in front of the character (see picture below). otherwise i would use a scene component instead of a target point, it will do the same thing but you can have it built into the character bp so no need to attach at run time.

if your deadset on using a target point you may want to look into using a attach to actor node though i dont know how well that will work and you may have issues with its location changing upon attachment.

alt text

capture.png (122.6 kB)
more ▼

answered Jun 17 '18 at 09:53 PM

avatar image

ThompsonN13
10.1k 33 10 25

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question