U can make them shoot at a dirrection u have recorded when you say something or do a command, but the chance to make the bot hit you is low as its just gona do what u recorded it to do. It cant aim or shoot after somebody, just shoot where you recorded it to shoot
I made that an npc walks its path
if a player gets near, a small recording starts ( a recording of shooting )
but ofcourse the npc will move then at the exact location you recorder it
now should it be possible to let him stay on the location where the first recording paused and it continues the second
recording and so it stays there..maybe done with setpos; i tried but failed