How to move player character automatically in the direction he is looking and stop when he turns the other side
I want my player character to move in the direction he is looking at for a certain time (say 2 seconds) without any input of the player and stop moving when he turns away. Please try to explain me how to do this kind blue print.
Thanks in advance :)
asked Oct 17 '16 at 10:57 AM in Blueprint Scripting
Not sure exactly what youre asking for, but you can use GetForwardVector to get the direction your player is moving, then plug that into the location pin of an AddMovement Input Node. You can set the scale value to 1 and keep target as self. If you want this to be done in 2 seconds, you can either make a timeline, or make a float variable setto 2 and subtract the deltaTime pin from it (the one on event Tick), then use a branch to check if it is Hope that helps
answered Oct 17 '16 at 11:25 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here