SA-MP Forums Archive
NPC Attack Player [REP +1] - 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 Attack Player [REP +1] (/showthread.php?tid=302300)



NPC Attack Player [REP +1] - Thresholdold - 08.12.2011

Okay, so basically, if a player shoots one of my NPC's, I want the NPC to shoot at the player and kill them. Is this possible, like using the OnPlayerShootPlayer function?


Re: NPC Attack Player [REP +1] - MP2 - 08.12.2011

In short; no.


Re: NPC Attack Player [REP +1] - Thresholdold - 08.12.2011

I've seen it on a server before :S


Re: NPC Attack Player [REP +1] - MP2 - 08.12.2011

You can't make NPCs shoot. At best you can apply a shooting animation and use SetPlayerFacingAngle.


Re: NPC Attack Player [REP +1] - [ABK]Antonio - 08.12.2011

Quote:
Originally Posted by MP2
Посмотреть сообщение
You can't make NPCs shoot. At best you can apply a shooting animation and use SetPlayerFacingAngle.
Actually...You can make them shoot with recordings but that's not what he means... (thought I would clarify that they can shoot)