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
asked Jun 17 '18 at 09:23 PM in Using UE4
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.
answered Jun 17 '18 at 09:53 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here