VE Lua Documentation

Press F to search!

vehicleActivated

Definition


-- @/lua/vehicle/controller/vehicleController/vehicleController.lua:1128

local function vehicleActivated()
  if not playerInfo.firstPlayerSeated then
    return
  end
  --sendTorqueData()
  sendShiftPointDebugData()
end

Callers

@/ui/modules/apps/ShiftPointDebug/app.js
        scope.$on('VehicleFocusChanged', function() {
          bngApi.activeObjectLua('controller.mainController.vehicleActivated()')
        })

        bngApi.activeObjectLua('controller.mainController.vehicleActivated()')
      }
@/lua/vehicle/controller/playerController.lua

local function vehicleActivated()
  if not playerInfo.firstPlayerSeated then
@/lua/vehicle/main.lua
      if controller.mainController.vehicleActivated then --TBD, only vehicleActivated should be there
        controller.mainController.vehicleActivated()
      else