Immolation
Member
- Reaction score
- 20
Is there a way to "pass" a local in a function to another one?
Thanks
Thanks
function DisplayName takes nothing returns nothing
call BJDebugMsg(GetUnitName(GetTriggerUnit()))
endfunction
function Actions takes nothing returns nothing
call DisplayName()
endfunction
function ...
local trigger trig = CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(trig,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddAction(trig,function Actions)
endfunction