14.05.2011, 16:59
Hello... I'm developing a filterscript with NPC's, (With CNPC by Alex009) and my question is the next,
when a npc get damage (OnNPCGetDamage) a timer actives, (AttackNPC) who make the npc get the real position of the player is shooting her, and the position is update. Like this:
But, timer's running over 50 NPC's is not a good idea.
What would be the best way of do this?
Thank's!
when a npc get damage (OnNPCGetDamage) a timer actives, (AttackNPC) who make the npc get the real position of the player is shooting her, and the position is update. Like this:
Код:
public AttackNPC(npcid, giveplayerid) { new Float:pos[3]; GetPlayerPos(GetPlayerClosestPlayer(npcid),pos[0],pos[1],pos[2]); NPC_ShotAt(npcid,pos[0],pos[1],pos[2]); return 1; }
What would be the best way of do this?
Thank's!