ACE3/addons/core/functions/fn_isPlayer.sqf
2015-01-11 10:20:14 -08:00

15 lines
368 B
Plaintext

/*
* Author: bux578, commy2
*
* Checks if a unit is a player / curator controlled unit.
* Currently returns false for non-local remote controlled zeus units. (Remotes from another zeus machine)
*
* Arguments:
* 0: unit to be checked (object)
*
* Return Value:
* Bool: is unit a player?
*/
isPlayer (_this select 0) || {_this select 0 == call FUNC(player)}