- Joined
- Jul 1, 2010
- Messages
- 31
Hello,
is it possible to call a function dynamically?
is it possible to call a function dynamically?
JASS:
globals
integer udg_MyValue = 0
endglobals
function FirstFunction takes nothing returns nothing
set udg_MyValue = 1
endfunction
function SecondFunction takes nothing returns nothing
set udg_MyValue = 2
endfunction
// Im searching something like that:
function FunctionThatISearchFor takes function f returns nothing
call RunFunction(f)
endfunction
function InitTrig_Stuff takes nothing returns nothing
call FunctionThatISearchFor(FirstFunction)
endfunction
Last edited: