CBA_fnc_players

Description

Get a list of current player objects.

In multi-player missions, returns list of human players, rather than all playable units (playableUnits includes playable AI).  Will include dead player objects for players who are waiting to respawn.

In single-player missions, just returns an array containing the current player object.

Parameters

None.

Returns

List of playable objects [Array].

Examples

_players = call CBA_fnc_players;

Author

Spooner

Close