GE Lua Documentation

Press F to search!

setInstant

Definition


-- @/lua/ge/simTimeAuthority.lua:137

local function setInstant(val)
  setTargetSpeed(val)
  simulationSpeed_smooth:set(M.simulationSpeed)
end

Callers

@/lua/ge/extensions/freeroam/crashCamMode.lua
      ui_visibility.set(false)
      simTimeAuthority.setInstant(0.15)
      core_camera.setByName(0, 'crash', false, {veh1Id = crashCamData.id1, veh2Id = crashCamData.id2, hitPoint = crashCamData.hitPoint, camOffset = crashCamData.camOffset, camMode = mode})
@/lua/ge/extensions/flowgraph/nodes/environment/setBulletTime.lua
      if self.pinIn.instant.value then
        simTimeAuthority.setInstant(self.pinIn.value.value or 1)
      else
@/lua/ge/extensions/freeroam/bigMapMode.lua
        job.sleep(0.1)
        simTimeAuthority.setInstant(simTimeAuthority.getInitialTimeScale() or 1)
        enterBigMapActual(true)
@/lua/ge/extensions/gameplay/missions/missionManager.lua
  simTimeAuthority.pause(false)
  simTimeAuthority.setInstant(1)
  be:resetTireMarks()
  simTimeAuthority.pause(false)
  simTimeAuthority.setInstant(1)
  be:resetTireMarks()