ACE3/addons/common/functions/fnc_owned.sqf

20 lines
361 B
Plaintext
Raw Normal View History

2015-03-11 11:22:27 +00:00
/*
* 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?
*
*/
2015-01-13 19:56:02 +00:00
#include "script_component.hpp"
2015-03-11 11:22:27 +00:00
private "_target";
2015-03-11 11:22:27 +00:00
_target = _this select 0;
2015-03-11 11:22:27 +00:00
!isNull (_target getVariable [QGVAR(owner), objNull])