mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
25 lines
519 B
Plaintext
25 lines
519 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;
|
|
|
|
if (!isnil QGVAR(DROP_ADDACTION)) then {
|
|
[_caller,objNull] call EFUNC(common,carryObj);
|
|
_caller removeAction GVAR(DROP_ADDACTION);
|
|
GVAR(DROP_ADDACTION) = nil;
|
|
};
|