Difference between revisions of "removeAction"

From Bohemia Interactive Community
Jump to navigation Jump to search
Line 28: Line 28:
 
'''Note:''' This only removes actions added with the addAction command.
 
'''Note:''' This only removes actions added with the addAction command.
  
You can not remove default game actions, such as reload and salute, with this command.
+
You cannot remove default game actions, such as reload and salute, with this command.

Revision as of 00:32, 16 April 2006

back to COMREF

unit removeAction index


Operand types:

unit: Object

index: Number

Type of returned value:

Nothing

Description:

Remove action with given id index.


Example:

player removeAction 0


Comments

Note: This only removes actions added with the addAction command.

You cannot remove default game actions, such as reload and salute, with this command.