ACE3/addons/dragging/XEH_serverInit.sqf
2015-03-17 13:47:07 +01:00

14 lines
346 B
Plaintext

// 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);
};
}];