ACE3/addons/medical_status/functions/fnc_isBeingDragged.sqf
jonpas 742626ff1a
General - Relative script_component.hpp includes (#9378)
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-09-12 20:58:10 +02:00

24 lines
494 B
Plaintext

#include "..\script_component.hpp"
/*
* Author: PabstMirror
* Returns if a target is being dragged. (from ace_dragging)
*
* Arguments:
* 0: Target Unit <OBJECT>
*
* Return Value:
* Is being dragged <BOOL>
*
* Example:
* [bob] call ace_medical_status_fnc_isBeingDragged
*
* Public: No
*/
params ["_target"];
private _owner = _target getVariable [QEGVAR(common,owner), objNull];
!(isNull _owner)
&& {(_owner getVariable [QEGVAR(dragging,draggedObject), objNull]) == _target}