Hi,
I want to make a bank worker/civillian npc who is idle then when i aim at them they raise their hands in the air, and keep them their until i am out of their sight for x amount of time.
I am new to AI and tried to modify a tutorial to give them a behavioral tree that has idle and then heldup but i got lost pretty quickly and was then wondering if i am being over the top using that method anyway.
Should i keep trying to use this and if so can anyone help me figure it out. The other way i thought might work would be by using line trace from the gun to make the ai react but again i have no idea how to go about that (and i am using linetrace to fire the gun already).
Any help would be greatly appreciated, and if possible please make the explanations as simple as possible as i am still very new to this thanks