1
0
mirror of https://github.com/acemod/ACE3.git synced 2024-08-30 18:23:18 +00:00

handle dc is the same fnc as handle killed

This commit is contained in:
commy2 2015-03-18 16:02:01 +01:00
parent 0bc7811912
commit be17e25487

@ -1,13 +1,5 @@
// by commy2
#include "script_component.hpp"
// release object on hard disconnection.
addMissionEventHandler ["HandleDisconnect", {
private "_unit";
_unit = _this select 0;
if (_unit getVariable [QGVAR(isDragging), false]) then {
[_unit, _unit getVariable [QGVAR(draggedObject), objNull]] call FUNC(dropObject);
};
}];
// release object on hard disconnection. Function is identical to killed
addMissionEventHandler ["HandleDisconnect", {_this call DFUNC(handleKilled)}];