AI Movement

I have been messing with this for a while now but to no avail. I have the AI moving to player which is what i want but i only want the AI to move whilst the players back is turned ( not facing the AI ). If the player sees the AI i will be stationary. Any ideas on how to do this? is it the camera itself?

I suggest using Behavior Tree to control your AI, and in that BT have a custom decorator that check’s player orientation every tick, or have a service that does that, puts result in AI’s Blackboard and then use a Blackboard-checking decorator.

At least that’s what I’d do :smiley:

Cheers,

–mieszko