CBA_fnc_addPlayerAction

Description

Adds persistent action to player (which will also be available in vehicles and after respawn or teamswitch).

Remove action with CBA_fnc_removePlayerActionDo not use standard removeAction command with these player-action indices!

Parameters

_actionArrayArray that defines the action, as used in addAction command [Array]

Returns

Index of action if added.  -1 if used on a dedicated server [Number]

Example

_actionIndex = [["Teleport", "teleport.sqf"]] call CBA_fnc_addPlayerAction;

Author

Sickboy

Removes player action previously added with CBA_fnc_addPlayerAction.
Close