removeAction

From Bohemia Interactive Community
Jump to: navigation, search
Introduced with Operation Flashpoint version 1.20
  Arguments of this scripting command don't have to be local to the client the command is executed onEffects of this scripting command are not broadcasted over the network and remain local to the client the command is executed on

Click on the images for descriptions

Introduced in

Game:
Operation Flashpoint
Version:
1.20

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.

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

Multiplayer:
-
See also:
actionIDsactionParamsaddActionsetUserActionTextinGameUISetEventHandlershowHUDinputActionremoveAllActionsaction

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Bottom Section