ACE3/addons/pylons/functions/fnc_onButtonClose.sqf
Tim Beswick c9f1719f5a Hot Resupply (#5639)
Allow rearm, refuel and pylons to function while vehicle engine is running
2017-10-25 23:13:44 -05:00

21 lines
445 B
Plaintext

/*
* Author: 654wak654
* Handles the closing of the dialog.
*
* Arguments:
* None
*
* Return Value:
* None
*
* Example:
* [] call ace_pylons_fnc_onButtonClose
*
* Public: No
*/
#include "script_component.hpp"
GVAR(currentAircraft) setVariable [QGVAR(currentUser), objNull, true];
GVAR(currentAircraftNamespace) setVariable [getPlayerUID ace_player, nil, true]; // Remove var from namespace, no need to keep objNull
closeDialog 2;