Dragging - Fix for #9385 (#9387)

This commit is contained in:
johnb432 2023-09-11 14:29:56 +02:00 committed by GitHub
parent de8940af9b
commit 5b1491278d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,14 +1,9 @@
// by PabstMirror, commy2
#include "script_component.hpp"
// Release object on disconnection. Function is identical to killed
if (isServer) then {
// 'HandleDisconnect' EH triggers too late
addMissionEventHandler ["PlayerDisconnected", {
private _unit = (getUserInfo (_this select 5)) select 10;
_unit call FUNC(handleKilled);
}];
// Release object on disconnection. Function is identical to killed
addMissionEventHandler ["HandleDisconnect", LINKFUNC(handleKilled)];
// Handle surrending and handcuffing
["ace_captiveStatusChanged", {