2015-02-15 20:55:17 +00:00
|
|
|
/*
|
|
|
|
* Author: PabstMirror
|
2015-02-24 16:27:53 +00:00
|
|
|
* Handles ZeusDisplayChanged event
|
2015-02-15 20:55:17 +00:00
|
|
|
* 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_2(_unit,_zeusIsOpen);
|
|
|
|
|
|
|
|
//set showHUD based on unit status:
|
|
|
|
if (!_zeusIsOpen) then {
|
|
|
|
if ((_unit getVariable [QGVAR(isHandcuffed), false]) || {_unit getVariable [QGVAR(isSurrendering), false]}) then {
|
2015-02-16 00:19:01 +00:00
|
|
|
TRACE_1("Player Change (showHUD false)",_unit);
|
2015-02-15 20:55:17 +00:00
|
|
|
showHUD false;
|
|
|
|
} else {
|
2015-02-16 00:19:01 +00:00
|
|
|
TRACE_1("Player Change (showHUD true)",_unit);
|
2015-02-15 20:55:17 +00:00
|
|
|
showHUD true;
|
|
|
|
};
|
|
|
|
};
|