{"name":"BIS_fnc_allTurrets","operator":null,"title":"BIS fnc allTurrets","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_allTurrets","revid":378550,"updated":"2026-05-05T15:09:23Z","groups":["Object Manipulation"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.76"}],"since":{"game":"arma3","name":"Arma 3","version":"1.76"},"arma3_since":"1.76","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Returns all vehicle turrets from config with options. Does what allTurrets command does, except the param is vehicle's config classname.","syntaxes":[{"syntax":"vehicleClass call BIS_fnc_allTurrets","since":null,"effect":null,"exec":null,"params":[{"name":"vehicleClass","type":"String","optional":false,"default":null,"description":"classname of the vehicle","types":["String"],"since":null,"text":"vehicleClass: String - classname of the vehicle"}],"returns":{"type":"Array of Turret Paths","types":["Array","Turret Path"],"description":null,"text":"Array of Turret Paths"}},{"syntax":"[vehicleClass, personTurrets] call BIS_fnc_allTurrets","since":null,"effect":null,"exec":null,"params":[{"name":"vehicleClass","type":"String","optional":false,"default":null,"description":"classname of the vehicle","types":["String"],"since":null,"text":"vehicleClass: String - classname of the vehicle"},{"name":"personTurrets","type":"Boolean","optional":false,"default":null,"description":"true to include FFV (firing from vehicle) turrets, false to exclude them","types":["Boolean"],"since":null,"text":"personTurrets: Boolean - true to include FFV (firing from vehicle) turrets, false to exclude them"}],"returns":{"type":"Array of Turret Paths","types":["Array","Turret Path"],"description":null,"text":"Array of Turret Paths"}}],"examples":[{"text":"```sqf\nprivate _allTurrets = \"C_Offroad_01_F\" call BIS_fnc_allTurrets; // []\n```","code":["private _allTurrets = \"C_Offroad_01_F\" call BIS_fnc_allTurrets; // []"]},{"text":"```sqf\nprivate _allTurrets = [\"C_Offroad_01_F\", true] call BIS_fnc_allTurrets; // [[0],[1],[2],[3]]\n```","code":["private _allTurrets = [\"C_Offroad_01_F\", true] call BIS_fnc_allTurrets; // [[0],[1],[2],[3]]"]},{"text":"```sqf\nprivate _allTurrets = [\"C_Offroad_01_F\", false] call BIS_fnc_allTurrets; // []\n```","code":["private _allTurrets = [\"C_Offroad_01_F\", false] call BIS_fnc_allTurrets; // []"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["allTurrets","BIS_fnc_getTurrets","BIS_fnc_turretConfig","BIS_fnc_vehicleCrewTurrets"],"notes":[],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: Object Manipulation","Functions","Introduced with Arma 3 version 1.76"],"docblock":null,"filled_from_docblock":[]}