removeAction: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
back to [[Scripting_Reference#R|COMREF]] | |||
<h2 style="color:#000066">''unit '''''removeAction ''index'''''</h2> | <h2 style="color:#000066">''unit '''''removeAction ''index'''''</h2> | ||
'''Operand types:''' | '''Operand types:''' | ||
unit: [[Object]] | '''unit:''' [[Object]] | ||
index: [[Number]] | '''index:''' [[Number]] | ||
'''Type of returned value:''' | '''Type of returned value:''' | ||
Nothing | [[Nothing]] | ||
'''Description:''' | '''Description:''' | ||
Remove action with given id. | Remove action with given id '''index'''. | ||
'''Example:''' | '''Example:''' | ||
player '''removeAction''' 0 | [[player]] '''removeAction''' 0 | ||
'''Comments''' | '''Comments''' | ||
'' | '''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. |
Revision as of 23:32, 15 April 2006
back to COMREF
unit removeAction index
Operand types:
unit: Object
index: Number
Type of returned value:
Description:
Remove action with given id index.
Example:
player removeAction 0
Comments
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.