Author Topic: NPC set trap?  (Read 318 times)

Legacy_Buddywarrior

  • Hero Member
  • *****
  • Posts: 512
  • Karma: +0/-0
NPC set trap?
« on: April 18, 2014, 04:09:32 pm »


               

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? 



               
               

               
            

Legacy_Buddywarrior

  • Hero Member
  • *****
  • Posts: 512
  • Karma: +0/-0
NPC set trap?
« Reply #1 on: April 18, 2014, 04:54:24 pm »


               

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,"","");