NPC that attacks - 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)
+--- Thread: NPC that attacks (
/showthread.php?tid=512809)
NPC that attacks -
DavidBilla - 12.05.2014
So what i want basically is to create an NPC which will chase the target and shoot him if he belongs to a different team.
I'm able to create an NPC and record it's movements, but i dont know how to make it attack others.
Any help would be appreciated.
Re: NPC that attacks -
Twizted - 12.05.2014
https://sampforum.blast.hk/showthread.php?tid=428066
Should this help you.
Re: NPC that attacks -
DavidBilla - 13.05.2014
Quote:
Originally Posted by Twizted
|
Thanks for the help
im totally new to scripting and i've been scripting for only like 3 days, so im just asking
So am i supposed to use it in the npcmodes directory or filterscripts?
and to connect the npc ,we use the same connectnpc("npcname","npcfile"); ?
Re: NPC that attacks -
iZN - 13.05.2014
Quote:
Originally Posted by DavidBilla
Thanks for the help
im totally new to scripting and i've been scripting for only like 3 days, so im just asking
So am i supposed to use it in the npcmodes directory or filterscripts?
and to connect the npc ,we use the same connectnpc("npcname","npcfile"); ?
|
You better look this tutorial:
https://sampforum.blast.hk/showthread.php?tid=95034
But, if you're using the plugin for controlling NPC, then you don't have to record them. Try to find some zombie gamemode, and learn how they made those stuff.