Does the trigger leak if i set point to a variable? Does it create a new leak everytime the spell is casted, or will the variable replace the old data?
And does the custom remove trigger code work in loop triggers?
If some variables doesnt replace the old data, what would they be? Like a real, integer, unit, unit group..etc..
I dont want to destroy those what will replace the old, because that would just take a unnessessary action if the spell is going to trigger multiple times in the game.
And destroying triggers, should i put it behind the "trigger turn off" action, or do i need to remove that turn off action from the trigger?
(and from that leak tutorial) Does this remove the current trigger, or do i need to write that trigger name somewhere that custom script?
call DestroyTrigger(GetTriggeringTrigger())
And can i destroy other triggers from another trigger? Like a example: "i have a doom trigger and duke trigger" if i want to remove that duke trigger, could i destroy it from the doom trigger?
And after the match, will the carbage collector remove all memory leaks, or will they be in the memory untill you reset computer?
Thats all questions i guess.
And does the custom remove trigger code work in loop triggers?
If some variables doesnt replace the old data, what would they be? Like a real, integer, unit, unit group..etc..
I dont want to destroy those what will replace the old, because that would just take a unnessessary action if the spell is going to trigger multiple times in the game.
And destroying triggers, should i put it behind the "trigger turn off" action, or do i need to remove that turn off action from the trigger?
(and from that leak tutorial) Does this remove the current trigger, or do i need to write that trigger name somewhere that custom script?
call DestroyTrigger(GetTriggeringTrigger())
And can i destroy other triggers from another trigger? Like a example: "i have a doom trigger and duke trigger" if i want to remove that duke trigger, could i destroy it from the doom trigger?
And after the match, will the carbage collector remove all memory leaks, or will they be in the memory untill you reset computer?
Thats all questions i guess.