Ardenian
A
Ardenian
JASS:
function Trig_NewTrigger_Actions takes nothing returns nothing
//actions
endfunction
//==== Init Trigger NewTrigger ====
function InitTrig_NewTrigger takes nothing returns nothing
set gg_trg_NewTrigger = CreateTrigger()
call TriggerRegisterTimerEventPeriodic( gg_trg_NewTrigger, 2 )
call TriggerAddAction(gg_trg_NewTrigger, function Trig_NewTrigger_Actions)
endfunction
Would it be appropriate to destroy a trigger dependent on conditions ?
JASS:
if udg_TempUnit == null then
call DestroyTrigger(gg_trg_NewTrigger)
endif
and to re-create the trigger manually if needed ?
JASS:
call ExecuteFunction("InitTrig_NewTrigger")
I haven't tested whether that works, but I would like to know what is the
general statement and personal opinions to this, as I would use such a combination for a system concept then.