Log inGet started
World

Builtin Library

Branchmain
Branchesmainpublish
Commitcc6939bf11

README.md

scene.playable

Whether the world is ready to play right now (could someone jump in and play it), what is still missing when it is not, and when it first became ready, read without entering play. The world is playable when its scene's play entry would spawn a player the person controls (a PlayerSpawn naming a well-formed PlayerPrototype, a body carrying a component that holds an input map, the camera the player sees through, and touch controls when the person is on a touch device), or when the agent building it has stated a version is ready. The answer is the playable.state() record: playable, source ("scene", "agent" or "both"), missing (what the scene still lacks, each with a code and a message), player, and since / first (when the current stretch began and when the world first reached it since it was opened).

tools.use("scene", "playable")                                   -- read it
tools.use("scene", "playable", { wait = 60 })                    -- wait for it; adds timedOut
tools.use("scene", "playable", { declare = true, by = "DotBot", note = "First version ready" })
tools.use("scene", "playable", { withdraw = true })              -- withdraw that statement