GE Lua Documentation

Press F to search!

onPhysicsUnpaused

Definition


-- @/lua/ge/extensions/scenario/scenarios.lua:2036

local function onPhysicsUnpaused()
  --log('A', logTag, 'onPhysicsUnpaused called....')
  if scenario and not editor.active and scenarioStateAtPauseEvent then
    if scenario.state ~= 'restart' then
      changeState(scenarioStateAtPauseEvent)
    end
    scenarioStateAtPauseEvent = nil
  end
end

Callers

@/lua/ge/extensions/scenario/busdriver.lua

local function onPhysicsUnpaused()
  paused = false
@/lua/ge/extensions/core/audio.lua

local function onPhysicsUnpaused()
  SFXSystem.setGlobalParameter("g_GamePause", 0)