{"name":"BIS_fnc_cargoTurretIndex","operator":null,"title":"BIS fnc cargoTurretIndex","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_cargoTurretIndex","revid":327249,"updated":"2022-07-12T22:11:49Z","groups":["Object Manipulation"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.00"}],"since":{"game":"arma3","name":"Arma 3","version":"1.00"},"arma3_since":"1.00","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Return cargo index of a person turret and the other way around.","syntaxes":[{"syntax":"[vehicle, personOrTurretPath] call BIS_fnc_cargoTurretIndex","since":null,"effect":null,"exec":null,"params":[{"name":"vehicle","type":"Object","optional":false,"default":null,"description":"the vehicle to check","types":["Object"],"since":null,"text":"vehicle: Object - the vehicle to check"},{"name":"personOrTurretPath","type":"Person or Array of Numbers","optional":false,"default":null,"description":"unit to find or turret path","types":["Person","Array","Number"],"since":null,"text":"personOrTurretPath: Person or Array of Numbers - unit to find or turret path"}],"returns":{"type":"Array (turret path) or Number (cargo index)","types":["Array","Number"],"description":null,"text":"Array (turret path) or Number (cargo index)"}}],"examples":[{"text":"```sqf\nprivate _vehicle = vehicle player;\nprivate _turretCargoIndex = [_vehicle, [0, 1]] call BIS_fnc_cargoTurretIndex;\nprivate _playerTurretPath = [_vehicle, player] call BIS_fnc_cargoTurretIndex;\n```","code":["private _vehicle = vehicle player;\nprivate _turretCargoIndex = [_vehicle, [0, 1]] call BIS_fnc_cargoTurretIndex;\nprivate _playerTurretPath = [_vehicle, player] call BIS_fnc_cargoTurretIndex;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["turretUnit","moveInTurret","allTurrets"],"notes":[],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: Object Manipulation","Functions","Introduced with Arma 3 version 1.00"],"docblock":null,"filled_from_docblock":[]}