We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No description provided.
The text was updated successfully, but these errors were encountered:
["deleteDisconnected", "onPlayerDisconnected", { [_name,_uid] spawn { private ["_name","_uid","_clientId","_unit"]; _name = _this select 0; _uid = _this select 1; _clientId = -1; _unit = objNull; while {_clientId == -1} do { { if (getPlayerUID _x == _uid) exitWith { _clientId = owner _x; _unit = _x; deleteVehicle _unit; }; } forEach playableUnits; sleep .02; }; deleteVehicle _unit; }; }] call BIS_fnc_addStackedEventHandler;
Sorry, something went wrong.
//Init.sqf (server): if (isServer || isDedicated) then { "playableUnitOccupier_PV" addPublicVariableEventHandler { private "_playableUnit"; _playableUnit = [_this,1,objNull] call BIS_fnc_param; if(!isNull _playableUnit) then { missionNamespace setVariable[getPlayerUID _playableUnit,_playableUnit]; }; }; ["deleteBodyOnPlayerDisccndId", "onPlayerDisconnected", { private "_body"; _body = missionNamespace getVariable [_uid,objNull]; if (!isNull _body) then { deleteVehicle _body; missionNamespace setVariable[_uid,nil]; }; }] call BIS_fnc_addStackedEventHandler; };
//Init.sqf (client) : if(!isDedicated) then { waitUntil {Alive player}; playableUnitOccupier_PV = player; publicVariableServer "playableUnitOccupier_PV"; player addEventHandler ["Respawn", { playableUnitOccupier_PV = _this select 0; publicVariableServer "playableUnitOccupier_PV"; }]; };
https://community.bistudio.com/wiki/Arma_3:_Event_Handlers#HandleDisconnect
Zealot111
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: