ACE3/addons/common/functions/fnc_owned.sqf
2015-03-11 12:22:27 +01:00

20 lines
361 B
Plaintext

/*
* Author: commy2
*
* Counterpart of ace_common_fnc_claim. Check if the given object is claimed by another unit.
*
* Arguments:
* 0: Any object. (Object)
*
* Return Value:
* Is this object claimed by someone?
*
*/
#include "script_component.hpp"
private "_target";
_target = _this select 0;
!isNull (_target getVariable [QGVAR(owner), objNull])