World Object
Work In Progress
We are working on updating and improving this documentation. Some information may be missing or inaccurate.
Description
The world block allows for setting some options for the world, such as the world size and changing Capture The Flag spawns to spawn randomly instead of on team bases.
Attributes
| Syntax | Description |
|---|---|
| name <name> |
Sets the name of this object. In many cases, this does not have any purpose and may just be useful for documenting what the object is for. In some case, like for teleporters, this can be used to reference the object from other objects. |
| size <size> |
This sets the |
| flagHeight <height> |
This is equivalent to using |
| noWalls |
When this is set, then the outer walls are not generated. This means that players could drive beyond the normal boundaries of the world, which will result in the server kicking the player for being out of bounds. This option is to be used when the world author creates their own obstructions to prevent a player from leaving the world boundaries. If, instead, you want the boundaries to still exist but just have 0 height, use |
| freeCtfSpawns |
In the Capture The Flag (CTF) game mode, players normally spawn on their respective team base the first time they spawn after joining and the first time they spawn after their flag is captured. This changes the behavior so that players do not spawn on their base and will spawn randomly in the world. |
Syntax Examples
world
# Set the _worldSize to 400
size 200
# Turn off the outer wall generation because we have our own structure along the border
noWalls
# Spawn CTF players randomly every time instead of on their bases
freeCtfSpawns
end
This content is maintained on GitHub. We welcome any feedback and improvements!