From 26ae3b807545b239fa5bf900d5bffdc31a994266 Mon Sep 17 00:00:00 2001 From: PabstMirror Date: Sat, 12 Nov 2016 15:51:44 -0600 Subject: [PATCH] Hide bar when mounted --- addons/advanced_fatigue/functions/fnc_handleStaminaBar.sqf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/addons/advanced_fatigue/functions/fnc_handleStaminaBar.sqf b/addons/advanced_fatigue/functions/fnc_handleStaminaBar.sqf index 2f865ac821..476fd23799 100644 --- a/addons/advanced_fatigue/functions/fnc_handleStaminaBar.sqf +++ b/addons/advanced_fatigue/functions/fnc_handleStaminaBar.sqf @@ -13,6 +13,11 @@ params ["_stamina"]; private _staminaBarContainer = uiNamespace getVariable [QGVAR(staminaBarContainer), controlNull]; +if ((vehicle ACE_player) != ACE_player) exitWith { // Hide when mounted + _staminaBarContainer ctrlSetFade 1; + _staminaBarContainer ctrlCommit 1; +}; + // - Size --------------------------------------------------------------------- // Shrink the container to cut off the image (other wise it would just get stretched) private _posAndSize = ctrlPosition _staminaBarContainer;