Aller au contenu

Photo

NPC set trap?


  • Veuillez vous connecter pour répondre
1 réponse à ce sujet

#1
Buddywarrior

Buddywarrior
  • Members
  • 256 messages

I would like to have a NPC rogue place a trap on the ground wherever that NPC may be standing. It looks like ActionUseSkill will not allow an NPC to use SKILL_SET_TRAP. Or that's what I understand from the Lexicon. What function can I use to do this? 



#2
Buddywarrior

Buddywarrior
  • Members
  • 256 messages

Funny what a shower and a cup of coffee can do. Sorry for the post. The function is just CreateTrapAtLocation with GetLocation(OBJECT_SELF). Perhaps somebody else may find it useful.

 
CreateTrapAtLocation(TRAP_BASE_TYPE_AVERAGE_FIRE,GetLocation(OBJECT_SELF),4.0f,"NW_IT_TRAP018",STANDARD_FACTION_HOSTILE,"","");

  • Grymlorde et Rolo Kipp aiment ceci