Helo,
I need help with a silly problem, I cannot resolve myself.
How can I pass identity of an unit activating a trigger to a script executed by this trigger on activation?
For example - I want to place a trigger set to, let's say, civilian/repeatedly. I want this trigger - when activated by any civilian unit (unit, not group) - to launch a script ordering this unit to do something, to go somewhere etc.
E.g. I want any civilian unit activating the trigger to go to a marker named "destinationmarker".
And so I place something like this in the trigger's on activation field:
[???] exec "myscript.sqs"
And then in myscript.sqs...
??? = _unit
_unit domove position destinationmarker
exit
What should I place instead of ???s to have this script working?
Kind regards
Chemnitzer