2015-01-18 21:16:35 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
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;
|
|
|
|
|
|
|
|
if (!isnil QGVAR(DROP_ADDACTION)) then {
|
2015-01-20 17:57:33 +00:00
|
|
|
[_caller,objNull] call EFUNC(common,carryObj);
|
|
|
|
_caller removeAction GVAR(DROP_ADDACTION);
|
2015-01-18 21:16:35 +00:00
|
|
|
GVAR(DROP_ADDACTION) = nil;
|
2015-01-20 17:57:33 +00:00
|
|
|
};
|