From 7d2f2023ee786d95361c62eb44e3fcf751b90282 Mon Sep 17 00:00:00 2001 From: commy2 Date: Sun, 14 Aug 2016 13:51:33 +0200 Subject: [PATCH] eject ai during cookoff --- addons/cookoff/functions/fnc_cookOff.sqf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/addons/cookoff/functions/fnc_cookOff.sqf b/addons/cookoff/functions/fnc_cookOff.sqf index 823b8aadb3..a9984235dd 100644 --- a/addons/cookoff/functions/fnc_cookOff.sqf +++ b/addons/cookoff/functions/fnc_cookOff.sqf @@ -111,6 +111,12 @@ _vehicle setVariable [QGVAR(isCookingOff), true]; [_vehicle, _fnc_FlameEffect, 12] call _fnc_FlameEffect; // recursive function + { + if (local _x && {!(_x call EFUNC(common,isPlayer))}) then { + _x action ["Eject", _vehicle]; + }; + } forEach crew _vehicle; + [{ params ["_vehicle", "_effects"];