mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Stop AI firing at unconscious units (#7074)
This just reimplemented the behaviour from #5864 I believe we though using `setUnconscious` command would make this unnecessary, but testing seems to show that's not the case
This commit is contained in:
parent
80e203c371
commit
56cb638aff
@ -24,6 +24,9 @@ _unit setVariable [VAR_UNCON, _active, true];
|
||||
// Toggle unit ragdoll state
|
||||
[_unit, _active] call EFUNC(medical_engine,setUnconsciousAnim);
|
||||
|
||||
// Stop AI firing at unconscious units in most situations (global effect)
|
||||
[_unit, "setHidden", "ace_unconscious", _active] call EFUNC(common,statusEffect_set);
|
||||
|
||||
if (_active) then {
|
||||
// Don't bother setting this if not used
|
||||
if (EGVAR(medical,spontaneousWakeUpChance) > 0) then {
|
||||
|
Loading…
Reference in New Issue
Block a user