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:
|
2017-06-08 13:31:51 +00:00
|
|
|
* None
|
2015-02-15 20:55:17 +00:00
|
|
|
*
|
|
|
|
* Example:
|
|
|
|
* [bob1, false] call ACE_captives_fnc_handleZeusDisplayChanged
|
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
#include "script_component.hpp"
|
|
|
|
|
2016-02-21 21:16:12 +00:00
|
|
|
if ((ACE_player getVariable [QGVAR(isHandcuffed), false]) || {ACE_player getVariable [QGVAR(isSurrendering), false]}) then {
|
|
|
|
TRACE_1("Player Change (showHUD false)",ACE_player);
|
2016-09-29 22:53:17 +00:00
|
|
|
["captive", [false, false, false, false, false, false, false, false]] call EFUNC(common,showHud);
|
2016-02-21 21:16:12 +00:00
|
|
|
} else {
|
|
|
|
TRACE_1("Player Change (showHUD true)",ACE_player);
|
|
|
|
["captive", []] call EFUNC(common,showHud); //same as showHud true;
|
2015-02-15 20:55:17 +00:00
|
|
|
};
|