createWorld
createWorld(
authority,createWorldOptions):number
Makes a world from play, a place players come back to, such as the
island a player founds at a harbor: owned by a player seated in this
room, counted in the player’s 10, or by the creator. Answers the
request’s id; WorldCreatedEvent answers on a later tick with the
world’s id and its invite code, or why none. Throws where no room runs
the simulation the authority steps.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
authority |
Authority |
createWorldOptions |
CreateWorldOptions |
Returns
Section titled “Returns”number
Example
Section titled “Example”createWorld(step, { name: "Ada's island", owner: player });