SA-MP Forums Archive
Is it possible? - 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: Is it possible? (/showthread.php?tid=370819)



Is it possible? - GeezleTV - 21.08.2012

Hello,

I have one little question. Is it possible to create NPCs that spawn on random places and behave like the bots in Single Player? Is it possible to make them attack players that are nearby? Basically what can you do with NPC bot?


Re: Is it possible? - clarencecuzz - 21.08.2012

I don't think, yet, that NPC's can 'attack' players. However you could probably have them perform an animation and then set the player's health to 0. You would need to record the bot's path yourself or alternatively download the recordings.

Try reading this: https://sampforum.blast.hk/showthread.php?tid=95034


Re: Is it possible? - JaKe Elite - 21.08.2012

NPC Attacking is not possible.


Re: Is it possible? - Lordzy - 21.08.2012

In my experience I dont think NPC can attack player.


Re: Is it possible? - CrazyChoco - 19.10.2012

It is possible to make the npc attacking with a gun for an example, with the plugin RNPC