{"name":"allowCrewInImmobile","operator":null,"title":"allowCrewInImmobile","type":"command","url":"https://community.bistudio.com/wiki/allowCrewInImmobile","revid":322540,"updated":"2022-06-15T14:00:23Z","groups":["Object Manipulation"],"status":"ok","replaced_by":[],"games":[{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.60"},{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.60"},"arma3_since":"0.50","branch":null,"locality":{"argument":"local","effect":"global","server_exec":false},"exec":null,"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","since":null,"effect":null,"exec":null,"params":[{"name":"vehicle","type":"Object","optional":false,"default":null,"description":null,"types":["Object"],"since":null,"text":"vehicle: Object"},{"name":"allow","type":"Boolean","optional":false,"default":null,"description":null,"types":["Boolean"],"since":null,"text":"allow: Boolean"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"binary","operator":null,"left":{"text":"vehicle","types":["Object"]},"right":{"text":"allow","types":["Boolean"]}},{"syntax":"vehicle allowCrewInImmobile [brokenWheels, upsideDown]","since":"arma3 2.10","effect":null,"exec":null,"params":[{"name":"vehicle","type":"Object","optional":false,"default":null,"description":null,"types":["Object"],"since":null,"text":"vehicle: Object"},{"name":"brokenWheels","type":"Boolean","optional":false,"default":null,"description":"do not auto eject when vehicle has broken wheels","types":["Boolean"],"since":null,"text":"brokenWheels: Boolean - do not auto eject when vehicle has broken wheels"},{"name":"upsideDown","type":"Boolean","optional":false,"default":null,"description":"do not auto eject when vehicle is upside down","types":["Boolean"],"since":null,"text":"upsideDown: Boolean - do not auto eject when vehicle is upside down"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"binary","operator":null,"left":{"text":"vehicle","types":["Object"]},"right":{"text":"[brokenWheels, upsideDown]","types":["Array"]}}],"examples":[{"text":"```sqf\n_vehicle allowCrewInImmobile true;\n```","code":["_vehicle allowCrewInImmobile true;"]}],"multiplayer":null,"problems":null,"aliases":[],"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```"}],"categories":["Arma 2: Operation Arrowhead: New Scripting Commands","Arma 2: Operation Arrowhead: Scripting Commands","Arma 3: Scripting Commands","Command Group: Object Manipulation","Introduced with Arma 2: Operation Arrowhead version 1.60","Scripting Commands","Scripting Commands: Global Effect","Take On Helicopters: Scripting Commands"]}