mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
c9f1719f5a
Allow rearm, refuel and pylons to function while vehicle engine is running
26 lines
570 B
Plaintext
26 lines
570 B
Plaintext
/*
|
|
* Author: 654wak654
|
|
* Cleans up pylons on client disconnect.
|
|
*
|
|
* Arguments:
|
|
* 0: Player <OBJECT>
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*
|
|
* Example:
|
|
* [] call ace_pylons_fnc_handleDisconnect
|
|
*
|
|
* Public: No
|
|
*/
|
|
#include "script_component.hpp"
|
|
|
|
params ["", "", "_uid"];
|
|
|
|
private _aircraft = GVAR(currentAircraftNamespace) getVariable ["_uid", objNull];
|
|
if (!isNull _aircraft) then {
|
|
_aircraft setVariable [QGVAR(currentUser), objNull, true];
|
|
|
|
GVAR(currentAircraftNamespace) setVariable [_uid, nil, true]; // Remove var from namespace, no need to keep objNull
|
|
};
|