Removing a Trigger

Status
Not open for further replies.
native DestroyTrigger takes trigger whichTrigger returns nothing
If you know how to clear leaks, you should know how to use it in a custom script:
  • Custom script: call DestroyTrigger(udg_MyTrigger)
Every trigger has an automatically created variable called gg_trg_<Trigger Nam>
A space in the name will be replaced by an underscore in the variable name.
So it would be gg_trg_Spell_1 if the trigger was named "Spell 1".
Then you can use:
  • Custom script: call DestroyTrigger(gg_trg_Spell_1)
 
Status
Not open for further replies.
Back
Top