AddAction
Description :
Adds an action to a units action menu.
Syntax :
actionid=unit addaction["actiontext","actionscript"]
actionid is the name of your action, for use with the removeaction command
actiontext is the text which will appear on the units action menu.
actionscript is the script that will run when the user clicks on the action. It must be a file, not a command.
The action menu is called up using the middle mouse button or enter key in game.
Returns :
-
Example :
attack=player addaction["Attack the base!","attack.sqs"]