Hi I want to have an A.I character to stop after a 5 minute delay and enter an idle animation which I know how to do. What I would like to do then is when they stop to all be looking or facing the same direction. How would I go about that? I’ve set up a Set Actor Rotation but I’m using a wander on the character which makes him choose a new location to walk to every few seconds so for the 30 seconds that I have him stopped in that location he keeps turning to a new direction.
try only doing the wander if the movement component is activated. You seem to be activating and deactivating it appropriately so use that as you “state” for whether to wander or not.
On your behavior tree you can set a service to check a value every tick or set amount of time, then you just have the sequence escape or change its function if/when that value changes
Cool just a few questions. Which behavior tree the wander or npc? What service do I need to use to check on every tick. How do I have the sequence escape or change function?
No thats not the problem. I am able to get the Character to look in a certain direction by using a set actor rotation however the problem I have is the wander I have set up for that character picks a point randomly somewhere on the map to walk to within 3 seconds when he is in idle mode so even with movement turned off he will still turn to that direction, which is a problem because I need him to keep looking at the direction I have set.