ACE3/addons/common/functions/fnc_isPlayer.sqf

16 lines
400 B
Plaintext
Raw Normal View History

/*
* 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?
*/
2015-01-13 19:56:02 +00:00
#include "script_component.hpp"
2015-01-11 18:20:14 +00:00
isPlayer (_this select 0) || {_this select 0 == call FUNC(player)}