{"name":"BIS_fnc_cargoTurretIndex","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","games":{"arma3":"1.00"},"since":"arma3 1.00","arma3_since":"1.00","description":"Return cargo index of a person turret and the other way around.","syntaxes":[{"syntax":"[vehicle, personOrTurretPath] call BIS_fnc_cargoTurretIndex","params":[{"name":"vehicle","type":"Object","description":"the vehicle to check","type_expr":"Object"},{"name":"personOrTurretPath","type":"Person or Array of Numbers","description":"unit to find or turret path","type_expr":"Object | Array<Number>"}],"returns":{"type":"Array","type_expr":"Array | Number","description":"(turret path) or Number (cargo index)","text":"Array (turret path) or Number (cargo index)"}}],"examples":[{"code":["private _vehicle = vehicle player;\nprivate _turretCargoIndex = [_vehicle, [0, 1]] call BIS_fnc_cargoTurretIndex;\nprivate _playerTurretPath = [_vehicle, player] call BIS_fnc_cargoTurretIndex;"]}],"see_also":["turretUnit","moveInTurret","allTurrets"]}