Disable Trigger vs Destroy Trigger

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

JustANewbie
Forum Spammer
Posts: 510
Joined: August 18th, 2012, 2:32 am

Disable Trigger vs Destroy Trigger

Post by JustANewbie »

Actually, what's the difference? Which should I use? In which situation?
zUsername
Forum Addict
Posts: 407
Joined: February 25th, 2011, 3:16 am
Location: Unknown

Re: Disable Trigger vs Destroy Trigger

Post by zUsername »

With DisableTrigger, u can EnableTriggger with the same event u have used before.
With DestroyTrigger, u can create new trigger with new event only. with new event u can use the same event u used before, Remember create new trigger before.
JustANewbie
Forum Spammer
Posts: 510
Joined: August 18th, 2012, 2:32 am

Re: Disable Trigger vs Destroy Trigger

Post by JustANewbie »

so what is the advantage to use DestroyTrigger?
Apple
Forum Staff
Posts: 1470
Joined: November 3rd, 2010, 10:48 am
Title: Best Player
Location: Singapore

Re: Disable Trigger vs Destroy Trigger

Post by Apple »

The advantage is when you use DestroyTrigger, you create a new trigger for new event. This means that you should use DestroyTrigger when you know the trigger is only gonna be activated for a single time , or the final time that trigger is going to be used.
On the other hand DisableTrigger pauses the on-going trigger, and the trigger can still be reactivated by EnableTrigger. A trigger not destroyed is a leak. and this is my humble opinion.
Request a map? Follow the rulesHERE
Request templateHERE
Please, do not PM me.
On the side note, I'm still playing vampirism speed on malaysia room, occasionally in Garena. Bcuz too lazy to find out where else I can play them.
JustANewbie
Forum Spammer
Posts: 510
Joined: August 18th, 2012, 2:32 am

Re: Disable Trigger vs Destroy Trigger

Post by JustANewbie »

for example DestroyTrigger should be used when is TriggerRegisterTimerEvent with periodic turned off, is it true?
zUsername
Forum Addict
Posts: 407
Joined: February 25th, 2011, 3:16 am
Location: Unknown

Re: Disable Trigger vs Destroy Trigger

Post by zUsername »

Ex: you have trigger ABC=CreateTrigger() and DestroyTrigger will set ABC=null