mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
14 lines
346 B
Plaintext
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);
|
|
};
|
|
}];
|