CBA_fnc_addPlayerAction

Description

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

Remove action with CBA_fnc_removePlayerActionDo not use standard BIS removeAction with these action indexes!

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 [Boolean]

Example

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

Author

Sickboy

Removes player action previously added with CBA_fnc_addPlayerAction.
Close