mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
32 lines
732 B
Plaintext
32 lines
732 B
Plaintext
/*
|
|
* Author: PabstMirror
|
|
* Handles ZeusDisplayChanged event
|
|
* Need to reset showHUD after closing zeus
|
|
*
|
|
* Arguments:
|
|
* 0: Unit <OBJECT>
|
|
* 1: Display is now open <BOOL>
|
|
*
|
|
* Return Value:
|
|
* Nothing
|
|
*
|
|
* Example:
|
|
* [bob1, false] call ACE_captives_fnc_handleZeusDisplayChanged
|
|
*
|
|
* Public: No
|
|
*/
|
|
#include "script_component.hpp"
|
|
|
|
params ["_unit","_zeusIsOpen"];
|
|
|
|
//set showHUD based on unit status:
|
|
if (!_zeusIsOpen) then {
|
|
if ((_unit getVariable [QGVAR(isHandcuffed), false]) || {_unit getVariable [QGVAR(isSurrendering), false]}) then {
|
|
TRACE_1("Player Change (showHUD false)",_unit);
|
|
showHUD false;
|
|
} else {
|
|
TRACE_1("Player Change (showHUD true)",_unit);
|
|
showHUD true;
|
|
};
|
|
};
|