Players - Theseus-Aegis/MissionTemplate GitHub Wiki

This page will explain the usage of the Players function.


/*
 * Author: Mike
 * Wrapper of CBA_fnc_players, removing players in spectator
 * and optionally any units not touching the ground (eg. in the air/water).
 *
 * Arguments:
 * 0: Skip units not touching the ground <BOOL>
 *
 * Return Value:
 * Players <ARRAY>
 *
 * Examples:
 * [] call MFUNC(players)
 * [true] call MFUNC(players)
 */

Usage

This function will get all current players, excluding any in spectator and optionally any not touching the ground e.g; Pilots or people swimming/in boats.

Call only on one machine.

Example:

[] call MFUNC(players);
⚠️ **GitHub.com Fallback** ⚠️