ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client functions
  3. isWorldLoaded

Function

isWorldLoaded

ClientWorldTrilogy Hub only

Checks whether the Trilogy Hub loading screen has gone and the player stands in the game world. Useful to show a welcome window or a camera shot only when the player can actually see it.

Syntax

bool isWorldLoaded()

Returns

true when the world is visible.

Example

local timer
timer = setTimer(function()
    if isWorldLoaded() then
        killTimer(timer)
        outputChatBox("Witaj na serwerze!")
    end
end, 500, 0)

See also