Issues with Look At & Can see

SOSolacex

Member
Hey there. I am having some issues where a NPC can clearly see my player, but at some point its rotation just resets. I have a small video of it here: Look at Rotation (Used tinytake to capture it).

But basically I have a sequence with "Can see object" and "Look at" both directed at the player. While it works a little bit, it stops working when going towards the sides of the NPC's original position.
 
Is your AI a UCC character? If so I'm surprised that there is any rotation at all - UCC controls the transform location. One way to have the AI look at a target is to set the Target field of the Local Look Source component.
 
Top