{"name":"BIS_fnc_moveIn","title":"BIS fnc moveIn","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_moveIn","revid":327172,"updated":"2022-07-12T22:05:55Z","groups":["Object Manipulation"],"status":"ok","games":{"tkoh":"1.00","arma3":"0.50"},"since":"tkoh 1.00","arma3_since":"0.50","locality":{"argument":"local"},"description":"Moves a unit into vehicle. Compatible with assignedVehicleRole output.","syntaxes":[{"syntax":"[vehicle, unit, role] call BIS_fnc_moveIn","params":[{"name":"vehicle","type":"Object","type_expr":"Object"},{"name":"unit","type":"Object","description":"the unit to move into *vehicle* - must be local","type_expr":"Object"},{"name":"role","type":"Array","description":"wanted seat, in format [*\"role\"*] or [*\"role\"*, turretPath]. Can be one of:\n\n- \"driver\"\n- \"gunner\"\n- \"commander\"\n- \"cargo\"\n- \"turret\"\n- \"\": will load *unit* in the first available seat (using moveInAny)","type_expr":"Array"}],"returns":{"type":"Boolean","type_expr":"Boolean","description":"true if moved in successfully"}}],"examples":[{"code":["[myCar, player, \"cargo\"] call BIS_fnc_moveIn;"]},{"code":["[myTank, player, [\"turret\", [0]]] call BIS_fnc_moveIn;"]},{"code":["[myTank, player, [\"turret\", -1]] call BIS_fnc_moveIn; // will moveInDriver the player"]}],"see_also":["moveInDriver","moveInGunner","moveInCommander","moveInCargo","moveInTurret","moveInAny"]}