2018-07-30 09:22:14 +00:00
|
|
|
#include "script_component.hpp"
|
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:
|
2018-05-08 09:16:12 +00:00
|
|
|
* [bob] call ace_medical_status_fnc_isBeingDragged
|
2015-04-03 18:16:48 +00:00
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
|
2015-08-22 14:25:10 +00:00
|
|
|
params ["_target"];
|
2015-04-03 18:16:48 +00:00
|
|
|
|
2016-09-04 14:44:22 +00:00
|
|
|
private _owner = _target getVariable [QEGVAR(common,owner), objNull];
|
2015-04-03 18:16:48 +00:00
|
|
|
|
2018-07-29 21:43:14 +00:00
|
|
|
!(isNull _owner)
|
|
|
|
&& {(_owner getVariable [QEGVAR(dragging,draggedObject), objNull]) == _target}
|