mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
16 lines
419 B
Plaintext
16 lines
419 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?
|
|
*/
|
|
#include "\z\ace\addons\core\script_component.hpp"
|
|
|
|
isPlayer (_this select 0) || {_this select 0 == call FUNC(player)}
|