mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Check if suicide bomber isAwake (#6324)
Zeus - Don't trigger suicide bomber if unconsicous
This commit is contained in:
parent
5f67e81355
commit
2668bdc665
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user