2015-04-03 19:37:04 +00:00
|
|
|
/*
|
|
|
|
* Author: PabstMirror
|
|
|
|
* Returns if a target is being carried. (from ace_dragging)
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: Target Unit <OBJECT>
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* Is being carried <BOOL>
|
|
|
|
*
|
|
|
|
* Example:
|
|
|
|
* [bob] call ace_medical_fnc_isBeingCarried
|
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
#include "script_component.hpp"
|
|
|
|
|
2015-08-22 14:25:10 +00:00
|
|
|
params ["_target"];
|
2015-04-03 19:37:04 +00:00
|
|
|
|
2016-09-04 14:44:22 +00:00
|
|
|
private _owner = _target getVariable [QEGVAR(common,owner), objNull];
|
2015-04-03 19:37:04 +00:00
|
|
|
|
|
|
|
if (isNull _owner) exitWith {false};
|
|
|
|
|
|
|
|
(_owner getVariable [QEGVAR(dragging,carriedObject), objNull]) == _target
|