mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Medical - Exit turret gunner view when going unconscious (#7003)
This commit is contained in:
parent
91afbbdfa8
commit
50afcda918
@ -23,6 +23,11 @@ GVAR(heartBeatEffectRunning) = false;
|
||||
|
||||
if (_unit != ACE_player) exitWith {};
|
||||
|
||||
if (_unconscious && {cameraView == "GUNNER"} && {(vehicle _unit) != _unit} && {cameraOn == vehicle _unit}) then {
|
||||
TRACE_2("exiting gunner view",cameraOn,cameraView);
|
||||
ACE_player switchCamera "INTERNAL";
|
||||
};
|
||||
|
||||
// Toggle unconscious player's ability to talk in radio addons
|
||||
if (["task_force_radio"] call EFUNC(common,isModLoaded)) then {
|
||||
_unit setVariable ["tf_voiceVolume", [1, 0] select _unconscious, true];
|
||||
|
Loading…
Reference in New Issue
Block a user