#include "script_component.hpp" /* * Author: commy2 * Check if unit can drop the object. * * Arguments: * 0: Unit that currently drags a object * 1: Object that is dragged * * Return Value: * Can the unit drop the object? * * Example: * [player, cursorTarget] call ace_dragging_fnc_canDrop; * * Public: No */ params ["_unit", "_target"]; if !([_unit, _target, ["isNotDragging", "isNotSwimming"]] call EFUNC(common,canInteractWith)) exitWith {false}; _unit getVariable [QGVAR(draggedObject), objNull] == _target