Creates an action.
Action ID is returned, you may use this returned number to remove the action later.
Only the first two elements of the second parameter (array) are needed for OFP.
action argument may be a plain text or a structured text.
If you need to pass arguments to the script executed by the action, use the third argument of addAction. You may pass anything there, for example an array with parameters for the script.
Used In
OFP/ArmA
Example
_myactionid = player addAction ["Hello", "hello.sqs"]
This can be accomplished by doing the following:
myaction = player addAction ["Hello", "hello.sqs"]
This sets the actions ID to "myaction".
This can make keeping track actions much easier.
To remove the above action, you would use the following line:
player removeAction myaction