2023-09-12 18:58:10 +00:00
|
|
|
#include "..\script_component.hpp"
|
2015-03-15 08:02:11 +00:00
|
|
|
/*
|
|
|
|
* Author: commy2
|
|
|
|
* Counterpart of ace_common_fnc_claim. Check if the given object is claimed by another unit.
|
|
|
|
*
|
|
|
|
* Arguments:
|
2015-09-17 16:25:02 +00:00
|
|
|
* 0: Any object. <OBJECT>
|
2015-03-15 08:02:11 +00:00
|
|
|
*
|
|
|
|
* Return Value:
|
2017-06-08 13:31:51 +00:00
|
|
|
* Is this object claimed by someone? <BOOL>
|
|
|
|
*
|
|
|
|
* Example:
|
|
|
|
* [bob] call ace_common_fnc_owned
|
2015-03-15 08:02:11 +00:00
|
|
|
*
|
2015-09-17 16:25:02 +00:00
|
|
|
* Public: No
|
2015-03-15 08:02:11 +00:00
|
|
|
*/
|
2015-01-11 16:42:31 +00:00
|
|
|
|
2015-09-17 16:25:02 +00:00
|
|
|
params ["_target"];
|
2015-01-11 16:42:31 +00:00
|
|
|
|
2015-03-15 08:02:11 +00:00
|
|
|
!isNull (_target getVariable [QGVAR(owner), objNull])
|