- Joined
- Mar 25, 2005
- Messages
- 252
For now I have figured out only one way of calling a code variable but it is pretty messy.
So is there a better way to call a code variable/argument?
(and btw ExecuteFunc doesnt fit my needs)
JASS:
function SomeFunction takes code func returns nothing
local conditionfunc c = Condition(func)
local trigger t = CreateTrigger()
local triggercondition tgc = TriggerAddCondition(t, c)
//...
call TriggerEvaluate(t) // this is where the code is "called"
call TriggerRemoveCondition(t, tgc)
call DestroyCondition(c)
call DestroyTrigger(t)
set t = null
set tgc = null
set c = null
endfunction
So is there a better way to call a code variable/argument?
(and btw ExecuteFunc doesnt fit my needs)