mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Medical - isBeingDragged func
This commit is contained in:
parent
d1d6252299
commit
254a25b139
@ -49,6 +49,7 @@ PREP(hasItems);
|
||||
PREP(hasMedicalEnabled);
|
||||
PREP(hasTourniquetAppliedTo);
|
||||
PREP(init);
|
||||
PREP(isBeingDragged);
|
||||
PREP(isInMedicalFacility);
|
||||
PREP(isMedic);
|
||||
PREP(isMedicalVehicle);
|
||||
|
26
addons/medical/functions/fnc_isBeingDragged.sqf
Normal file
26
addons/medical/functions/fnc_isBeingDragged.sqf
Normal file
@ -0,0 +1,26 @@
|
||||
/*
|
||||
* Author: PabstMirror
|
||||
* Returns if a target is being dragged.
|
||||
*
|
||||
* 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
|
Loading…
Reference in New Issue
Block a user