{"name":"allowCrewInImmobile","title":"allowCrewInImmobile","type":"command","url":"https://community.bistudio.com/wiki/allowCrewInImmobile","revid":322540,"updated":"2022-06-15T14:00:23Z","groups":["Object Manipulation"],"status":"ok","games":{"arma2oa":"1.60","tkoh":"1.00","arma3":"0.50"},"since":"arma2oa 1.60","arma3_since":"0.50","locality":{"argument":"local","effect":"global"},"description":"If true, units will remain in a vehicle with broken tracks/wheels; they will still eject if the vehicle is drowning, about to explode or upside down for a while.\nThe alternative syntax provides the ability to keep the crew in vehicle when it is upside down.","syntaxes":[{"syntax":"vehicle allowCrewInImmobile allow","params":[{"name":"vehicle","type":"Object","type_expr":"Object"},{"name":"allow","type":"Boolean","type_expr":"Boolean"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"binary","left":{"text":"vehicle"},"right":{"text":"allow"}},{"syntax":"vehicle allowCrewInImmobile [brokenWheels, upsideDown]","since":"arma3 2.10","params":[{"name":"vehicle","type":"Object","type_expr":"Object"},{"name":"brokenWheels","type":"Boolean","description":"do not auto eject when vehicle has broken wheels","type_expr":"Boolean"},{"name":"upsideDown","type":"Boolean","description":"do not auto eject when vehicle is upside down","type_expr":"Boolean"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"binary","left":{"text":"vehicle"},"right":{"text":"[brokenWheels, upsideDown]"}}],"examples":[{"code":["_vehicle allowCrewInImmobile true;"]}],"see_also":["isAllowedCrewInImmobile","setUnloadInCombat","canMove"],"notes":[{"user":"Killzone_Kid","date":"2015-04-27T19:52:00Z","text":"This will stop AI disembarking when immobile\n\n```sqf\nKK_fnc_allowCrewInImmobile = {\n    _this allowCrewInImmobile true;\n    {\n        _x disableAI \"FSM\";\n        _x setBehaviour \"CARELESS\";\n    } forEach crew _this;\n};\n//example\ncar call KK_fnc_allowCrewInImmobile;\n```"}]}