Adds persistent action to the player.
The action will be available in vehicles and after respawn or teamswitch.
Remove action with CBA_fnc_removePlayerAction. Do not use standard removeAction command with these player-action indices!
_actionArray | Array that defines the action, as used in addAction command [Array] |
Index of action if added. -1 if used on a dedicated server [Number]
_actionIndex = [["Teleport", "teleport.sqf"]] call CBA_fnc_addPlayerAction;
Sickboy