VE Lua Documentation

Press F to search!

getSimulationTimeScale

Definition


-- @/=[C]:-1
function getSimulationTimeScale(...)

Callers

@/lua/vehicle/bullettime.lua
local function get()
  return obj:getSimulationTimeScale()
end
@/lua/vehicle/controller/vehicleController/shiftLogic/manualGearbox.lua
    if M.timer.shiftDelayTimer <= 0 and canShift then
      local availableSyncTime = shiftIntoGearTimer:stop() * 0.001 * obj:getSimulationTimeScale() --account for slow motion as well, the timer measures wall time
      if newDesiredGearIndex ~= 0 then
@/lua/ge/simTimeAuthority.lua

M.simulationSpeed = be:getSimulationTimeScale() -- after a gelua load or gelua reload, ensure we're in sync with the c++ engine
M.simulationSpeedReal = M.simulationSpeed