{"name":"moveInDriver","title":"moveInDriver","type":"command","url":"https://community.bistudio.com/wiki/moveInDriver","revid":363679,"updated":"2024-04-16T14:31:18Z","groups":["Unit Control"],"status":"ok","games":{"ofp":"1.00","ofpe":"1.00","arma1":"1.00","arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"ofp 1.00","arma3_since":"0.50","locality":{"argument":"local","effect":"global"},"description":"Moves soldier into vehicle driver position (immediate, no animation).\n\n> [!NOTE]\n> See AI Group Vehicle Management for more information.\n\n> [!IMPORTANT]\n> If the unit is already in a vehicle, nothing will happen unless moveOut (since Arma 2) is used first to move the unit out of their vehicle (see Example 2).","syntaxes":[{"syntax":"unit moveInDriver vehicle","params":[{"name":"unit","type":"Object","type_expr":"Object"},{"name":"vehicle","type":"Object","type_expr":"Object"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"binary","left":{"text":"unit"},"right":{"text":"vehicle"}}],"examples":[{"code":["_soldierOne moveInDriver _tankOne;"]},{"text":"```sqf\nif (not isNull vehicle player) then\n{\n    moveOut player;\n};\n\nplayer moveInDriver _myTruck;\n```","code":["if (not isNull vehicle player) then\n{\n\tmoveOut player;\n};\n\nplayer moveInDriver _myTruck;"]}],"multiplayer":"*unit* must be local, while the vehicle's locality does not matter.","see_also":["moveInAny","moveInCargo","moveInCommander","moveInGunner","moveInTurret","assignAsCargo","assignAsCommander","assignAsDriver","assignAsGunner","isTurnedOut"],"notes":[{"user":"Ceeeb","date":"2007-02-02T06:02:00Z","text":"In **OFP v1.96**, the moveIn commands will not trigger an associated getIn event.\nTo ensure the getIn event is fired, use the \"getIn Driver\" action command."}]}