mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
parent
de8940af9b
commit
5b1491278d
@ -1,14 +1,9 @@
|
|||||||
// by PabstMirror, commy2
|
// by PabstMirror, commy2
|
||||||
#include "script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
// Release object on disconnection. Function is identical to killed
|
|
||||||
if (isServer) then {
|
if (isServer) then {
|
||||||
// 'HandleDisconnect' EH triggers too late
|
// Release object on disconnection. Function is identical to killed
|
||||||
addMissionEventHandler ["PlayerDisconnected", {
|
addMissionEventHandler ["HandleDisconnect", LINKFUNC(handleKilled)];
|
||||||
private _unit = (getUserInfo (_this select 5)) select 10;
|
|
||||||
|
|
||||||
_unit call FUNC(handleKilled);
|
|
||||||
}];
|
|
||||||
|
|
||||||
// Handle surrending and handcuffing
|
// Handle surrending and handcuffing
|
||||||
["ace_captiveStatusChanged", {
|
["ace_captiveStatusChanged", {
|
||||||
|
Loading…
Reference in New Issue
Block a user