How could I implement this AI?

Hi,

I would like to implement the following feature to my enemy AI:
If I am sneaking (button down), even though I am within distance of the enemy.. Until I am not in direct sight, it will not seek.
However, if I am within distance and not sneaking, it will seek as well.

Someone on the Opsive Discord told me the problem, but I don't know a way to fix it.
I want to also make the enemy damage me at a certain point of its attack animation.

Thanks!
Sean.
 

Attachments

  • Capture2.PNG
    Capture2.PNG
    114.1 KB · Views: 4
Last edited:
Top