View Single Post
Old 21.03.2007, 13:35   #2
FidoW
Архивный участник
 
Join Date: Sep 2005
Posts: 1,014
Default

Code:
class 1 citizen : default_npc {

  parameter:
  int iSkill = 1663745;

  handler:
  EventHandler ATTACKED(attacker) {
    myself->AddUseSkillDesire(attacker, iSkill, 0, 1, 1000000);
  }

}
Where iSkill is skill_pch number of the skill you want to use, for example, some type of paralyze... or you can use AddAttackDesire if you want... but that will finish killing the player.
FidoW is offline