World (object)

From BZFlagWiki

Jump to: navigation, search

A World object is a BZW map structure that defines various options for the map.

Contents

[edit] Code

The code for a world object is as follows

world
 name example_world
 size 400.0
 flagHeight 10.0
 noWalls
 freeCtfSpawns
end

Valid parameters for a world object are

namethe name of the map, generally unused.
sizethe size of the outer world walls from the center of the map to each wall. The default is 400 world units, providing a world 800 units across.
flagHeightdefines the height in Z of the standard flagpole.
noWallsremoves the default outer stone walls (as well as the invisible collision wall and the radar signature of the wall), from the map. This is different than "set _wallHeight 0", which leaves the radar alone.
freeCtfSpawnsafter a team-flag is captured, players spawn randomly, not at the base.

The world object can only be specified once in a map.

[edit] Notes

flagHeight defines the Z volume needed for flag spawns. Flags will never drop in an area unless there is flagHeight clearance in Z. This can be an issue with maps that use multiple objects "stacked" in Z

[edit] History

The world object was added in v1.10.

[edit] Editor Support

The world object is only fully supported by the BZWTools blender plug-in.

Personal tools