mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Pylons - Fix disconnect handling (#7766)
This commit is contained in:
parent
e9c1f5e18f
commit
66f39eb5c2
@ -4,20 +4,22 @@
|
||||
* Cleans up pylons on client disconnect.
|
||||
*
|
||||
* Arguments:
|
||||
* 0: Player <OBJECT>
|
||||
* 0: Unit (not used) <OBJECT>
|
||||
* 1: ID (not used) <NUMBER>
|
||||
* 2: UID <STRING>
|
||||
*
|
||||
* Return Value:
|
||||
* None
|
||||
*
|
||||
* Example:
|
||||
* [] call ace_pylons_fnc_handleDisconnect
|
||||
* [_unit, _id, _uid] call ace_pylons_fnc_handleDisconnect
|
||||
*
|
||||
* Public: No
|
||||
*/
|
||||
|
||||
params ["", "", "_uid"];
|
||||
|
||||
private _aircraft = GVAR(currentAircraftNamespace) getVariable ["_uid", objNull];
|
||||
private _aircraft = GVAR(currentAircraftNamespace) getVariable [_uid, objNull];
|
||||
if (!isNull _aircraft) then {
|
||||
_aircraft setVariable [QGVAR(currentUser), objNull, true];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user