ACE3/addons/dragging/XEH_serverInit.sqf

14 lines
346 B
Plaintext
Raw Normal View History

2015-03-17 12:47:07 +00:00
// 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);
};
}];