removeAction: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Take[ _]On[ _]Helicopters(\|.*)?\]\]" to "{{GameCategory|tkoh|Scripting Commands}}")
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Command|Comments=
{{Command|Comments=
____________________________________________________________________________________________


| ofp |Game name=
| ofp |Game name=
Line 11: Line 10:


|gr1= Interaction |GROUP1=
|gr1= Interaction |GROUP1=
____________________________________________________________________________________________


| Removes user added action with given id index. This only removes actions added with the [[addAction]] command. You cannot remove default game actions, such as reload.
| Removes user added action with given id index. This only removes actions added with the [[addAction]] command. You cannot remove default game actions, such as reload.


This command has [[local]] effect. The action will only be removed on the computer that executes the command. |DESCRIPTION=
This command has [[local]] effect. The action will only be removed on the computer that executes the command. |DESCRIPTION=
____________________________________________________________________________________________


| unit '''removeAction''' index |SYNTAX=
| unit '''removeAction''' index |SYNTAX=
Line 24: Line 21:


| [[Nothing]] |RETURNVALUE=
| [[Nothing]] |RETURNVALUE=
____________________________________________________________________________________________
   
   
|x1= <code>[[player]] [[removeAction]] 0;</code> |EXAMPLE1=
|x1= <code>[[player]] [[removeAction]] 0;</code> |EXAMPLE1=
____________________________________________________________________________________________


|  [[actionIDs]], [[actionParams]], [[addAction]], [[setUserActionText]], [[inGameUISetEventHandler]], [[showHUD]], [[inputAction]], [[removeAllActions]], [[action]]|SEEALSO=
|  [[actionIDs]], [[actionParams]], [[addAction]], [[setUserActionText]], [[inGameUISetEventHandler]], [[showHUD]], [[inputAction]], [[removeAllActions]], [[action]]|SEEALSO=

Revision as of 02:17, 17 January 2021

Hover & click on the images for description

Description

Description:
Removes user added action with given id index. This only removes actions added with the addAction command. You cannot remove default game actions, such as reload. This command has local effect. The action will only be removed on the computer that executes the command.
Groups:
Interaction

Syntax

Syntax:
unit removeAction index
Parameters:
unit: Object - unit, vehicle or static object
index: Number - action id returned by addAction
Return Value:
Nothing

Examples

Example 1:
player removeAction 0;

Additional Information

See also:
actionIDsactionParamsaddActionsetUserActionTextinGameUISetEventHandlershowHUDinputActionremoveAllActionsaction

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

Bottom Section