GE Lua Documentation

Press F to search!

createGame

Definition


-- @/lua/ge/server/server.lua:411

local function createGameWrapper(levelPath, customLoadingFunction)
  local function help()
    createGameActual(levelPath, customLoadingFunction)
  end
  --log('I', logTag, 'Loading = '..tostring(core_gamestate.loading()))
  -- yes this is weird, but it fixes the problem with createGame and luaPreRender
  core_gamestate.requestEnterLoadingScreen(logTag, help)
  core_gamestate.requestEnterLoadingScreen('worldReadyState')
  if __cefcontext_ == -1 then
    core_gamestate.loadingScreenActive()
  end
end

Callers

@/lua/ge/extensions/core/levels.lua

    server.createGame(expandedLevelPath, customLoadingFunction)
    core_gamestate.requestExitLoadingScreen('')