mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Nametags - Only display talking waves when unit is alive and conscious (#10106)
Only display waves when unit is alive and conscious
This commit is contained in:
parent
ee0e947611
commit
b714c8bce2
@ -41,14 +41,14 @@ switch (true) do {
|
||||
INFO("ACRE Detected.");
|
||||
DFUNC(isSpeaking) = {
|
||||
params ["_unit"];
|
||||
([_unit] call acre_api_fnc_isSpeaking) && {!(_unit getVariable ["ACE_isUnconscious", false])}
|
||||
([_unit] call acre_api_fnc_isSpeaking) && {_unit call EFUNC(common,isAwake)}
|
||||
};
|
||||
};
|
||||
case (["task_force_radio"] call EFUNC(common,isModLoaded)): {
|
||||
INFO("TFAR Detected.");
|
||||
DFUNC(isSpeaking) = {
|
||||
params ["_unit"];
|
||||
(_unit getVariable ["tf_isSpeaking", false]) && {!(_unit getVariable ["ACE_isUnconscious", false])}
|
||||
(_unit getVariable ["tf_isSpeaking", false]) && {_unit call EFUNC(common,isAwake)}
|
||||
};
|
||||
};
|
||||
default {
|
||||
@ -65,7 +65,7 @@ switch (true) do {
|
||||
|
||||
DFUNC(isSpeaking) = {
|
||||
params ["_unit"];
|
||||
(_unit getVariable [QGVAR(isSpeakingInGame), false]) && {!(_unit getVariable ["ACE_isUnconscious", false])}
|
||||
(_unit getVariable [QGVAR(isSpeakingInGame), false]) && {_unit call EFUNC(common,isAwake)}
|
||||
};
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user