From 82f79b68e226436eb0a5b8da3a0c477a2482449f Mon Sep 17 00:00:00 2001 From: Filip Maciejewski Date: Wed, 8 Oct 2025 13:56:28 +0200 Subject: [PATCH] AI Disembark - Add locality check for allowCrewInImmobile The command has global effect and should be executed where vehicle is local --- addons/ai_disembark/XEH_preInit.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/ai_disembark/XEH_preInit.sqf b/addons/ai_disembark/XEH_preInit.sqf index 54578b5..6ff5f18 100644 --- a/addons/ai_disembark/XEH_preInit.sqf +++ b/addons/ai_disembark/XEH_preInit.sqf @@ -13,7 +13,7 @@ PREP_RECOMPILE_END; ["LandVehicle", "InitPost", { params ["_vehicle"]; - if (isAllowedCrewInImmobile _vehicle) exitWith {}; + if (isAllowedCrewInImmobile _vehicle || !local _vehicle) exitWith {}; private _allow = random 1 < GVAR(stayInImmobileChance); _vehicle allowCrewInImmobile [_allow, _allow]; }] call CBA_fnc_addClassEventHandler;