if ((alive life_vInact_curTarget) && {([life_vInact_curTarget] call life_fnc_isDamaged)}) then {_Btn1 ctrlEnable true;} else {_Btn1 ctrlEnable false;};
_anyDepanneurOnline = false;
{
if (_x getVariable ["TP_troubleshooter",false]) then {
_anyDepanneurOnline = true;
};
} forEach playableUnits;
if ((alive life_vInact_curTarget) && {([life_vInact_curTarget] call life_fnc_isDamaged)} && (!_anyDepanneurOnline || (player getVariable ["TP_troubleshooter",false]))) then {_Btn1 ctrlEnable true;} else {_Btn1 ctrlEnable false;};
if ((alive life_vInact_curTarget) && {([life_vInact_curTarget] call life_fnc_isDamaged)}) then {_Btn1 ctrlEnable true;} else {_Btn1 ctrlEnable false;};
_anyDepanneurOnline = false;
{
if (_x getVariable ["TP_troubleshooter",false]) then {
_anyDepanneurOnline = true;
};
} forEach playableUnits;
if ((alive life_vInact_curTarget) && {([life_vInact_curTarget] call life_fnc_isDamaged)} && (!_anyDepanneurOnline || (player getVariable ["TP_troubleshooter",false]))) then {_Btn1 ctrlEnable true;} else {_Btn1 ctrlEnable false;};
systemChat format ["%1 | %2 | %3",_anyDepanneurOnline,(player getVariable ["TP_troubleshooter",false]),(!_anyDepanneurOnline || (player getVariable ["TP_troubleshooter",false])];