of     1   

ping44646
#195141829Tuesday, August 02, 2016 12:00 AM GMT

Making a tactical third person shooter, need help with stealth elements for AI. I want NPC enemies to have a cone of vision so a player can easily sneak up behind them without being detected and killed. I've tried raycasting but cant seem to get the directions right. Help plz
Flige132
#195179781Tuesday, August 02, 2016 2:03 PM GMT

Bump1
BloodRozen
#195182011Tuesday, August 02, 2016 2:48 PM GMT

I am the bottom of the barrel when it comes to scripting, but you can try: Build their transparent cone part, then script your events and what will happen if a player touches that cone part. I am so bad...
Flige132
#195185359Tuesday, August 02, 2016 3:44 PM GMT

The problem with that is that it can go through walls and barriers. I assume you could script a safe spot that alternates depending on where the NPC faces, but that would be primitive (and we know that people like modern stuff).
ping44646
#195190299Tuesday, August 02, 2016 5:01 PM GMT

I thought about that as well, also bullets would collide with it when you try to fight the NPC

    of     1