{"name":"moveInTurret","operator":null,"title":"moveInTurret","type":"command","url":"https://community.bistudio.com/wiki/moveInTurret","revid":377492,"updated":"2026-01-02T06:49:15Z","groups":["Turrets"],"status":"ok","replaced_by":[],"games":[{"game":"arma1","name":"Armed Assault","version":"1.00"},{"game":"arma2","name":"Arma 2","version":"1.00"},{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.50"},{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"arma1","name":"Armed Assault","version":"1.00"},"arma3_since":"0.50","branch":null,"locality":{"argument":"local","effect":"global","server_exec":false},"exec":null,"description":"Moves the soldier into the vehicle's turret. (Immediately, without 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. You should use moveOut to move the unit out of his vehicle before trying to move him into a new (or same) vehicle.","syntaxes":[{"syntax":"unitName moveInTurret [vehicle, turretPath]","since":null,"effect":null,"exec":null,"params":[{"name":"unitName","type":"Object","optional":false,"default":null,"description":null,"types":["Object"],"since":null,"text":"unitName: Object"},{"name":"vehicle","type":"Object","optional":false,"default":null,"description":null,"types":["Object"],"since":null,"text":"vehicle: Object"},{"name":"turretPath","type":"Turret Path","optional":false,"default":null,"description":null,"types":["Turret Path"],"since":null,"text":"turretPath: Turret Path"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"binary","operator":null,"left":{"text":"unitName","types":["Object"]},"right":{"text":"[vehicle, turretPath]","types":["Array"]}}],"examples":[{"text":"```sqf\n_soldierOne moveInTurret [_tank, [0, 0]];\n```","code":["_soldierOne moveInTurret [_tank, [0, 0]];"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["allTurrets","fullCrew","assignAsTurret","moveInAny","moveInCargo","moveInCommander","moveInDriver","moveInGunner","assignAsCargo","assignAsCommander","assignAsDriver","assignAsGunner","ArmA: Actions"],"notes":[{"user":"Kronzky","date":"2008-03-06T20:31:00Z","text":"To find out which turrets are available on a vehicle (**edit:** before allTurrets), and what the syntax is, you can use [this little script](http://kronzky.info/turrets/index.htm)."},{"user":"hcpookie","date":"2014-02-13T01:56:00Z","text":"Examples for nested turrets:\n\nMainTurret = \n\n```sqf\n_soldierOne moveInTurret [_tank, [0]];\n```\n\nCommanderTurret = \n\n```sqf\n_soldierOne moveInTurret [_tank, [0, 0]];\n```\n\n... where:\n\nMainTurret is the standard BIS MainTurret... e.g:\n\n```cpp\nclass Turrets \n{\n    class MainTurret {};\n};\n```\n\nCommanderTurret is the standard BIS CommanderTurret located on the MainTurret... e.g:\n\n```cpp\nclass Turrets \n{\n    class MainTurret\n    {\n        class Turrets \n        {\n            class CommanderTurret {};\n        };\n    };\n};\n```"},{"user":"Killzone_Kid","date":"2014-03-19T00:07:00Z","text":"Here is a small function to find available *turret paths* for a given vehicle. It will only search 2 levels deep, hence called *commonTurrets*:\n\n```sqf\nKK_fnc_commonTurrets = {\n    private [\"_arr\",\"_trts\"];\n    _arr = [];\n    _trts = configFile / \"CfgVehicles\" / typeOf _this / \"Turrets\";\n    for \"_i\" from 0 to count _trts - 1 do {\n        _arr set [count _arr, [_i]];\n        for \"_j\" from 0 to count (\n            _trts / configName (_trts select _i) / \"Turrets\"\n        ) - 1 do {\n            _arr set [count _arr, [_i, _j]];\n        };\n    };\n    _arr\n};\n```\n\nExample call:\n\n```sqf\nhint str (vehicle player call KK_fnc_commonTurrets); // [[0],[0,0]]\n```\n\nSee also allTurrets"}],"categories":["ArmA: Armed Assault: New Scripting Commands","ArmA: Armed Assault: Scripting Commands","Arma 2: Operation Arrowhead: Scripting Commands","Arma 2: Scripting Commands","Arma 3: Scripting Commands","Command Group: Turrets","Introduced with Armed Assault version 1.00","Scripting Commands","Scripting Commands: Global Effect","Take On Helicopters: Scripting Commands"]}