SA-MP Forums Archive
NPC Fight? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: NPC Fight? (/showthread.php?tid=149793)



NPC Fight? - OziMeen - 23.05.2010

Hi all.

I saw in a server, a npc shoot people if people in front of NPC. I want to do same thing. But i don't know how i do this.

Can you help me?

THX. Sorry for my bad english...


Re: NPC Fight? - boelie - 23.05.2010

Something like this;

in the npc script;

use a timer that checks if a player is near
(with isplayerinrangeofpoint or something)

then if it does it should use startrecording ( of a shooting npc)