GE Lua Documentation

Press F to search!

openSession

Definition


-- @/lua/ge/extensions/core/online.lua:50

-- connects to the online services
local function openSession()
  -- opening the session is only supposed to work once at game start
  if not enabled or M.sessionReqested then return end
  M.sessionReqested = true

  -- ask the c++ side to do that for us
  Engine.Online.openSession()
end

Callers

@/lua/ge/extensions/core/online.lua
  -- ask the c++ side to do that for us
  Engine.Online.openSession()
end
    enabled = true
    openSession()
  elseif enabled and not sValue then
@/lua/ge/main.lua

  core_online.openSession() -- try to connect to online services