GE Lua Documentation

Press F to search!

endScenario

Definition


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

-- finish the scenario and let goals and custom lua decide about the result
local function endScenario(countDownTime)
  endRace(countDownTime)
  extensions.hook('onEndScenario', countDownTime)
  if simTimeAuthority.get() > 1/8 then simTimeAuthority.set(1/8) end -- use slowmotion during end screen
end

Callers

@/lua/ge/extensions/scenario/nomoveGoal.lua
        if instance.value.triggerEndOnly then
          scenario_scenarios.endScenario(0.25)
        else