Fix suicide bomber explosion position (#6323)

This commit is contained in:
Vdauphin 2018-05-04 17:36:08 +02:00 committed by SilentSpike
parent 898c01587a
commit 5f67e81355

View File

@ -60,7 +60,7 @@ if (_autoSeek) then {
// Detonation
private _nearObjects = (_unit nearObjects _activationRadius) select {side _x == _activationSide && {_x != _unit} && {alive _x}};
if !(_nearObjects isEqualTo []) then {
createVehicle [EXPLOSIVES select _explosionSize, getPos _unit, [], 0, "CAN_COLLIDE"];
createVehicle [EXPLOSIVES select _explosionSize, _unit, [], 0, "CAN_COLLIDE"];
[_pfhID] call CBA_fnc_removePerFrameHandler;
LOG("Explosion created, PFH removed");
};