ACE3/addons/medical_menu/functions/fnc_openMenu.sqf

34 lines
600 B
Plaintext
Raw Normal View History

/*
* Author: Glowbal
* Open the medical menu for target
*
* Arguments:
* 0: Target <OBJECT>
*
* Return Value:
2015-08-07 03:37:41 +00:00
* None
*
* Example:
* [some_player] call ace_medical_menu_openMenu
*
* Public: No
*/
2015-08-02 14:56:27 +00:00
#include "script_component.hpp"
2015-08-07 03:37:41 +00:00
params ["_interactionTarget"];
if (dialog || isNull _interactionTarget) exitwith {
2015-08-02 14:56:27 +00:00
disableSerialization;
private "_display";
_display = uiNamespace getVariable QGVAR(medicalMenu);
2015-08-07 03:37:41 +00:00
if (!isNil "_display") then {
2015-08-02 14:56:27 +00:00
closeDialog 314412;
};
};
GVAR(INTERACTION_TARGET) = _interactionTarget;
2015-08-02 14:56:27 +00:00
createDialog QGVAR(medicalMenu);
GVAR(lastOpenedOn) = ACE_time;