Difference between revisions of "removeAction"

From Bohemia Interactive Community
Jump to navigation Jump to search
m
(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

Introduced with Operation Flashpoint version 1.111.11
Hover & click on the images for descriptions

Description

Description:
Remove action with given id index.

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
Groups:
Uncategorised

Notes

i
Only post proven facts here. Report bugs on the Feedback Tracker and discuss on the Arma Discord or on the Forums.

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