HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Code for destroying a trigger

08-28-2004, 04:52 PM#1
[niro]
I've looked all over the forums and can't find the exact code for destroying a trigger, i have alot of 1 shot triggers that i would like to destroy, so please, anyone whats the exact code for destroying a trig?
08-28-2004, 04:58 PM#2
viet850
Action - Trigger - Turn off (This Trigger)
08-28-2004, 05:08 PM#3
[niro]
Quote:
Originally Posted by viet850
Action - Trigger - Turn off (This Trigger)

No, that simply turns it off, there is a function, JASS/custom code, that completle destroys it, i need to know what it is.
08-28-2004, 05:20 PM#4
fugly
call DestroyTrigger(GetTriggeringTrigger())

just copy that into a custom script and put it into 1 shot triggers
08-28-2004, 09:45 PM#5
[niro]
Alright thanks man!
08-30-2004, 01:59 AM#6
Progniss
you could also go to the tools section and download the WE Unlimited. it has custom scripts in it including the destroy trigger.