dudeim
New Member
- Reaction score
- 22
Hey,
I'm making a system which triggers a custom event.
Now I want something like when the event triggers you can acces the struct data of the system in the trigger that is triggered by the event.
How can I do this?
Thanks!
I'm making a system which triggers a custom event.
Now I want something like when the event triggers you can acces the struct data of the system in the trigger that is triggered by the event.
JASS:
library x
struct x
real x
endstruct
endlibrary
function a takes ..
//here I should be able to use something like x.x = 15.0
endfunction
function triggerevent takes ...
local trigger t = CreateTrigger()
call triggermyevent(t)
call addaction (t, function a)
endfunction
How can I do this?
Thanks!