ACE3/addons/medical/functions/fnc_actionDropUnit.sqf
2015-01-18 22:16:35 +01:00

25 lines
517 B
Plaintext

/*
fnc_drop.sqf
Usage: makes the calling unit start dragging the specified unit
Author: Glowbal
Arguments: array [unit (object), unit (object)]
Returns: none
Affects:
Executes:
*/
#include "script_component.hpp"
private ["_caller", "_unit","_info","_draggedPerson"];
_caller = _this select 0;
_unit = _this select 1;
[_caller,objNull] call EFUNC(common,carryObj);
if (!isnil QGVAR(DROP_ADDACTION)) then {
_caller removeAction GVAR(DROP_ADDACTION);
GVAR(DROP_ADDACTION) = nil;
};