Jump to content

Recommended Posts

When using addaction, is it possible to add parameters, just like ["someparameter"] exec "somescript.sqs"? Or is it possible to tell the name of the unit that made it?

Share this post


Link to post
Share on other sites

I think it is possible to find out who activated the script with the action command by :

_this select 0

Or it could be select 1 or 2.

RED

Share this post


Link to post
Share on other sites

In adaction script you have automatically 3 parameters (I didn't try to use another parameters) :

_this select 0   ... owner of action

_this select 1   ... unit that call action

_this select 2   ... index of action

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×