SA-MP Forums Archive
how to make a attacking 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: how to make a attacking npc (/showthread.php?tid=319735)



how to make a attacking npc - peterory - 20.02.2012

beacuse CNPC cant not be used
i wan't to make a attacking npc to attack player



Re: how to make a attacking npc - clavador - 20.02.2012

Good idea.

Now get to it.


Re: how to make a attacking npc - Rob_Maate - 20.02.2012

@clavador - Are you retarded? I can see why you have 0 rep.

@peterory - Mate, NPC's are simply bots that auto-connect and run a recorded macro, either once or repeatedly.
Without some seriously insane and more than likely extremely inefficient and buggy code, there is no way of achieving this YET.

Possibly in later versions of SA-MP there will be functionality to create dynamic NPC's, but at the current time I don't believe there is such a thing. (Correct me if i'm wrong)


Re: how to make a attacking npc - viddo - 20.02.2012

Hi robby, Its me nader from wcrp lol


Re: how to make a attacking npc - Guest9328472398472 - 20.02.2012

Quote:
Originally Posted by peterory
Посмотреть сообщение
beacuse CNPC cant not be used
i wan't to make a attacking npc to attack player
Not possible...

Quote:
Originally Posted by viddo
Посмотреть сообщение
Hi robby, Its me nader from wcrp lol
Are you dumb? If your not helping him then you have NOT ONE reason to be posting here!


Re: how to make a attacking npc - ReneG - 20.02.2012

This is impossible? I remember seeing a tutorial similar to this on the forums. Can't you make a stock like SetPlayerFacingPlayer and use that on the NPC, and use OnPlayerUpdate and a shitload of if's? This is just my way of thinking. My fault if it isn't possible.