For background: I’m working on a stealth game with invisibility mechanics. At the moment I have it working to where when the player crouches, they turn “invisible.” When this occurs, I have the actor set to unregister from the sight sense on clock and re-register on uncloaking. However upon uncloaking, the AI knows exactly where I am unless I break LOS no matter how far or close I am. I would like the AI to “forget” once the target goes invis.
Things I’ve tried:
- Set “max age” to values >0
- Used the “Forget all” on stimulus update
- Setting the target to null on update
Vid: AI Stealth problem - YouTube
Reset Task used in the BT once the AI starts wandering:
350640-
Used to turn stealth back off once it’s on:
I’m relatively new to the AI perception system so any help would be appreciated.