Need some assistance making an NPC - 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: Need some assistance making an NPC (
/showthread.php?tid=397452)
Need some assistance making an NPC -
darkvsoul36 - 05.12.2012
Hey guys/girls out there! I need some assistance making an NPC for my server.
The NPC
must:
Have an army skin
Have a M4
Have unlimited ammo
Walk along a specified path
Stop to shoot at a player if they are in range
Continue their walk upon the player being killed or out of range
I have no idea where to being. Could someone
steer me into the right direction? Help would be appreciated. Thank you,
Re: Need some assistance making an NPC -
LarzI - 05.12.2012
Look up some NPC tutorials.
I'm not entirely sure if it's possible to make them carry weapons and shoot at players, but that's only because I haven't been playing or coding sa-mp for 2 years.
Anyway, if it's possible, you'll have to use:
- Timers.
- Range checks
- OnPlayerSpawn & IsPlayerNPC