Merge pull request #4245 from acemod/eject-ai-crew-cookoff

eject ai during cookoff
This commit is contained in:
Glowbal 2016-08-20 11:56:40 +02:00 committed by GitHub
commit 47d17c49dc

View File

@ -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"];