Check if suicide bomber isAwake (#6324)

Zeus - Don't trigger suicide bomber if unconsicous
This commit is contained in:
Vdauphin 2018-05-04 18:57:38 +02:00 committed by PabstMirror
parent 5f67e81355
commit 2668bdc665

View File

@ -57,6 +57,8 @@ if (_autoSeek) then {
LOG("Unit deleted or killed, PFH removed");
};
if (!([_unit] call EFUNC(common,isAwake))) exitWith {};
// Detonation
private _nearObjects = (_unit nearObjects _activationRadius) select {side _x == _activationSide && {_x != _unit} && {alive _x}};
if !(_nearObjects isEqualTo []) then {