How can I make an actor rotate 180 degrees over 1 second in a Behavior Tree Task?

My Behavior Tree is checking if something is in front of the enemy and, if not, then it moves forward; but once there IS something in the way, I want to rotate 180 (yaw) and keep going (it’s a side scroller, think of a Goomba from Mario).

I have it working just fine… But I’m doing the rotation as an instant switch, with a small delay before returning out of the task.

Then I thought it would be nice if the pawn would rotate over the course of 1 second or so, but I’m having trouble finding a straightforward way of doing this. I thought about using a Timeline, but apparently you can’t inside a Task.

In general I find it difficult to just make something happen over a set amount of time, unless I use a Timeline… And that isn’t really flexible because you have to go in and edit the Timeline every time you want to make a change.

Is there some easy way to just do a latent, ‘rotate to over x seconds’?

call a rotate event on the actor. Use the move to node. It allows you to pick a component to move and the amount of time it takes. The transform pin will let you flip it.