1
0
mirror of https://github.com/acemod/ACE3.git synced 2024-08-30 18:23:18 +00:00
ACE3/addons/pylons/functions/fnc_onButtonClose.sqf

21 lines
445 B
Plaintext
Raw Normal View History

#include "script_component.hpp"
/*
* Author: 654wak654
* Handles the closing of the dialog.
*
* Arguments:
* None
*
* Return Value:
* None
*
* Example:
* [] call ace_pylons_fnc_onButtonClose
*
* Public: No
*/
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;