removeAction: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
(moved command to template)
Line 3: Line 3:
[[Category:Scripting Commands OFP 1.46|REMOVEACTION]]
[[Category:Scripting Commands OFP 1.46|REMOVEACTION]]
[[Category:Scripting Commands ArmA|REMOVEACTION]]
[[Category:Scripting Commands ArmA|REMOVEACTION]]
{{Command|= Comments
____________________________________________________________________________________________


| ofp |= Game name


<h2 style="color:#000066">'''''unit'' removeAction ''index'''''</h2>
|1.11|= Game version
____________________________________________________________________________________________


| Remove action with given id index. |= Description
____________________________________________________________________________________________


'''Operand types:'''
| unit '''removeAction''' index |= Syntax


'''unit:''' [[Object]]
|p1= unit: [[Object]] |= Parameter 1


'''index:''' [[Number]]
|p2= index: [[Number]] |= Parameter 2


'''Type of returned value:'''
| [[Nothing]] |= Return value
____________________________________________________________________________________________
 
|x1= <pre>[[player]] removeAction 0 </pre> |= Example 1
____________________________________________________________________________________________


[[Nothing]]
|  |= See also


'''Compatibility:'''
}}


Added in version '''1.11'''
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
This only removes actions added with the [[addAction]] command. You cannot remove default game actions, such as reload and salute, with this command.
<!-- Note Section END -->
</dl>


'''Description:'''
<h3 style="display:none">Bottom Section</h3>
 
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.

Revision as of 02:58, 3 August 2006


Hover & click on the images for description

Description

Description:
Remove action with given id index.
Groups:
Uncategorised

Syntax

Syntax:
unit removeAction index
Parameters:
unit: Object
index: Number
Return Value:
Nothing

Examples

Example 1:
[[player]] removeAction 0 

Additional Information

See also:
See also needed

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

This only removes actions added with the addAction command. You cannot remove default game actions, such as reload and salute, with this command.

Bottom Section