{"name":"moveInAny","operator":null,"title":"moveInAny","type":"command","url":"https://community.bistudio.com/wiki/moveInAny","revid":378826,"updated":"2026-07-02T20:02:58Z","groups":["Unit Control"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.18"}],"since":{"game":"arma3","name":"Arma 3","version":"1.18"},"arma3_since":"1.18","branch":null,"locality":{"argument":"global","effect":"global","server_exec":false},"exec":null,"description":"Moves unit to the first available seat in the specified vehicle.\n\nThe order of priorities is the same order used in squad command when you order subordinates to get in vehicle to any position and is the same order used in Zeus when you drag units to a vehicle.\n\nSeat assignment seems to use the following priority logic:\n\ndriver (moveInDriver) → commander (moveInCommander) → gunner (moveInGunner) → turrets (moveInTurret) → cargo (moveInCargo).\n\n> [!IMPORTANT]\n> If the unit is already in a vehicle, nothing will happen. You should use moveOut to move the unit out of his vehicle before trying to move him into a new (or same) vehicle.\n\n> [!NOTE]\n> This command will move player into the locked vehicle or seat just as well.","syntaxes":[{"syntax":"unit moveInAny vehicle","since":null,"effect":null,"exec":null,"params":[{"name":"unit","type":"Object","optional":false,"default":null,"description":"person","types":["Object"],"since":null,"text":"unit: Object - person"},{"name":"vehicle","type":"Object","optional":false,"default":null,"description":"transport","types":["Object"],"since":null,"text":"vehicle: Object - transport"}],"returns":{"type":"Boolean","types":["Boolean"],"description":"true on success, false on failure","text":"Boolean - true on success, false on failure"},"form":"binary","operator":null,"left":{"text":"unit","types":["Object"]},"right":{"text":"vehicle","types":["Object"]}},{"syntax":"unit moveInAny [vehicle, positions, ignoreLocked]","since":"arma3 2.22","effect":null,"exec":null,"params":[{"name":"unit","type":"Object","optional":false,"default":null,"description":"person","types":["Object"],"since":null,"text":"unit: Object - person"},{"name":"vehicle","type":"Object","optional":false,"default":null,"description":"transport","types":["Object"],"since":null,"text":"vehicle: Object - transport"},{"name":"positions","type":"Array of Strings","optional":false,"default":null,"description":"array of positions to check and in which order. Positions are (in default order):\n- \"DRIVER\" - driver\n- \"COMMANDER\" - commander turret (turret configured as commander)\n- \"GUNNER\" - gunner turret (turret configured as gunner)\n- \"TURRET\" - other turrets incl. FFV but excl. gunner or commander turret\n- \"CARGO\" - cargo seats excl. FFV\nWhen empty array [] is given, all positions in default order (same as in the main syntax) will be considered; see also emptyPositions","types":["Array","String"],"since":null,"text":"positions: Array of Strings - array of positions to check and in which order. Positions are (in default order):\n- \"DRIVER\" - driver\n- \"COMMANDER\" - commander turret (turret configured as commander)\n- \"GUNNER\" - gunner turret (turret configured as gunner)\n- \"TURRET\" - other turrets incl. FFV but excl. gunner or commander turret\n- \"CARGO\" - cargo seats excl. FFV\nWhen empty array [] is given, all positions in default order (same as in the main syntax) will be considered; see also emptyPositions"},{"name":"ignoreLocked","type":"Boolean","optional":true,"default":"false","description":"true to ignore locked positions","types":["Boolean"],"since":null,"text":"ignoreLocked: Boolean - (Optional, default false) true to ignore locked positions"}],"returns":{"type":"Boolean","types":["Boolean"],"description":"true on success, false on failure","text":"Boolean - true on success, false on failure"},"form":"binary","operator":null,"left":{"text":"unit","types":["Object"]},"right":{"text":"[vehicle, positions, ignoreLocked]","types":["Array"]}}],"examples":[{"text":"```sqf\nplayer moveInAny tank;\n```","code":["player moveInAny tank;"]},{"text":"```sqf\nplayer moveInAny [tank, [\"CARGO\", \"TURRET\"]]; // checks free cargo position, if not available, checks free turret next\n```","code":["player moveInAny [tank, [\"CARGO\", \"TURRET\"]]; // checks free cargo position, if not available, checks free turret next"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["moveInDriver","moveInCommander","moveInGunner","moveInTurret","moveInCargo","emptyPositions"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Unit Control","Introduced with Arma 3 version 1.18","Scripting Commands","Scripting Commands: Global Effect"]}