mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Prevent opening the medical menu if the player is unconscious (#6915)
This commit is contained in:
parent
db6dadb78f
commit
24a533b968
@ -19,6 +19,7 @@
|
||||
params ["_player", "_target"];
|
||||
|
||||
alive _player
|
||||
&& {!IS_UNCONSCIOUS(_player)}
|
||||
&& {!isNull _target}
|
||||
&& {_player distance _target < GVAR(maxDistance) || {vehicle _player == vehicle _target}}
|
||||
&& {GVAR(enableMedicalMenu) == 1 || {GVAR(enableMedicalMenu) == 2 && {vehicle _player != _player || {vehicle _target != _target}}}}
|
||||
|
Loading…
Reference in New Issue
Block a user