Tinki3
Special Member
- Reaction score
- 418
I know how to add Actions, Conditions, Events to local triggers, but, I'm not too sure as to how I would refer back to that local trigger.
For example:
Also, would it be neccessary to handle targ with trig ("t" is just an example handle)?
If anyone can help, It'll be greatly appreciated =)
For example:
JASS:
function Action_2 takes nothing returns nothing
//How would I refer back to "trig", in this function? (so that I could do something with targ)
endfunction
function Action_1 takes nothing returns nothing
local unit targ = GetSpellTargetUnit()
local trigger trig = CreateTrigger()
call SetHandleHandle(t, "targ", targ)
call SetHandleHandle(t, "trig", trig)
call TriggerRegisterUnitEvent(trig, targ, EVENT_UNIT_DEATH)
...
endfunction
Also, would it be neccessary to handle targ with trig ("t" is just an example handle)?
If anyone can help, It'll be greatly appreciated =)