ACE3/addons/medical/functions/fnc_isBeingDragged.sqf

27 lines
506 B
Plaintext
Raw Normal View History

2015-04-03 18:16:48 +00:00
/*
* Author: PabstMirror
2015-04-03 19:37:04 +00:00
* Returns if a target is being dragged. (from ace_dragging)
2015-04-03 18:16:48 +00:00
*
* Arguments:
* 0: Target Unit <OBJECT>
*
* Return Value:
* Is being dragged <BOOL>
*
* Example:
* [bob] call ace_medical_fnc_isBeingDragged
*
* Public: No
*/
#include "script_component.hpp"
PARAMS_1(_target);
private "_owner";
_owner = _target getVariable [QEGVAR(common,owner), objNull];
if (isNull _owner) exitWith {false};
(_owner getVariable [QEGVAR(dragging,draggedObject), objNull]) == _target