Move NPC actor on spline
I am having an issue trying to move an NPC along a spline and be interrupted by the player. For example, if pawn sensing detects the player, then it should move on a positive direction on the spline. If the character moves in front of the NPC, then it should move in the opposite direction. The NPC is a Character Blueprint and I'm trying to use Simple Move to get it to move. Any insight?
asked Feb 03 '15 at 12:51 AM in Blueprint Scripting
Here's how I did it for one of my games. Direction is a float either 1 or -1 depending on if it's moving up or down the spline. I do some extra fancy stuff with Roll in my game you can probably ignore. I also RInterp the rotations which you might not need. I basically call this in the NPCs event tick passing in the delta time.
answered Feb 03 '15 at 01:51 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here