Waaaaagh
I lost all my rep and my title being a jerk
- Reaction score
- 70
Is it possible for me to attach a struct to a triggeraction (yes), and reference the triggeraction being run in the triggeraction? Something like GetTriggerEventId() for triggeractions? If so that would help a bunch.
Moreover, if I do:
Can I call that multiple times on the same trigger, with different units, and expect 'Actions' to run as many times as I added it? (and will each action run have a unique id?)
The idea of this is to add an infinite number of objects to a singular object through triggering. Triggeractions can be added and removed, and I need triggers to run differently for each time I add the action, but, I want them all to run at once. I just need some help with this.
JASS:
Moreover, if I do:
JASS:
function Blah takes unit u, trigger t returns nothing
local triggeraction ta=TriggerAddAction(t,function Actions)
call SetHandleUnit(ta,u)
endfunction
Can I call that multiple times on the same trigger, with different units, and expect 'Actions' to run as many times as I added it? (and will each action run have a unique id?)
The idea of this is to add an infinite number of objects to a singular object through triggering. Triggeractions can be added and removed, and I need triggers to run differently for each time I add the action, but, I want them all to run at once. I just need some help with this.