cycleGearboxModes
Definition
-- @/lua/vehicle/controller/vehicleController/vehicleController.lua:633
local function cycleGearboxBehaviors()
-- if not gearbox then
-- return
-- end
local found = false
local newBehavior = gearboxHandling.behavior
for _, v in pairs(gearboxHandling.behaviors) do
if found then
newBehavior = v
found = false
break
elseif gearboxHandling.behavior == v then
found = true
end
end
if found then
newBehavior = gearboxHandling.behaviors[next(gearboxHandling.behaviors)]
end
setGearboxBehavior(newBehavior)
end
Callers
@/ui/ui-vue/mockdata/inputBindings.js
"title": "ui.inputActions.vehicle.toggleShifterMode.title",
"onDown": "controller.mainController.cycleGearboxModes()",
"order": 14,
@/lua/vehicle/controller/vehicleController/vehicleController.lua
onSelect = function()
controller.mainController.cycleGearboxModes()
return {"reload"}