I am trying to make my enemy pawn face my pawn at all times but once i start the level it only faces me once and doesnt turn again. This is in the enemy’s blueprint
Hi,
If you want your code to be executed every frame (i.e. sort of all the time), you should be executing it inside the Event Tick
Be careful with what you’re doing inside : there are functions to avoid using in Tick because they can take a lot of time, and will eat your framerate.
You should put your function “Face player” to be called inside the Tick Event, and not call it again, like you’re doing with the delay function.
I did with with 1 boolean. When the enemy detects my unit it set it to TRUE, then on TickEvent I call the function FacePlayer. When the rotation finished I set this boolean to FALSE.
1 Like