This wiki is archived and useful information is being migrated to the main bzflag.org website

Difference between revisions of "Zone"

From BZFlagWiki
Jump to: navigation, search
(History: - Added.)
(Code)
Line 10: Line 10:
 
     size 1.0 1.0 1.0
 
     size 1.0 1.0 1.0
 
     rotation 0.0
 
     rotation 0.0
     zoneflag GM,2 OO
+
     # Add two GM, one OO
 +
    zoneflag GM 2 OO
 
     flag L SW good bad
 
     flag L SW good bad
 
     team 0 1 2 3 4
 
     team 0 1 2 3 4
Line 21: Line 22:
 
size=Defines the size of the zone (rectangular prism)
 
size=Defines the size of the zone (rectangular prism)
 
rotation=Defines a rotation around the Z axis for the box, in degrees.
 
rotation=Defines a rotation around the Z axis for the box, in degrees.
zoneflag=Generates the flags listed inside this zone (adding flag,n for the quantity). The flags will be generated specifically for the zone, regardless of BZFS options.
+
zoneflag=Generates the flags listed inside this zone (adding "flag n" for the quantity). The flags will be generated specifically for the zone, regardless of BZFS options.
 
flag=Listed flags will spawn in the zone. The flags need to be specified in the map via BZFS options.
 
flag=Listed flags will spawn in the zone. The flags need to be specified in the map via BZFS options.
 
team=Team players will spawn (0 = Rogue, 1 = Red, 2 = Green, 3 = Blue, 4 = Purple).
 
team=Team players will spawn (0 = Rogue, 1 = Red, 2 = Green, 3 = Blue, 4 = Purple).

Revision as of 15:48, 14 August 2007

A Zone is a BZW map structure that is only a rectangular prism area for spawn or flag zones.

Code

The code for a zone is as follows:

 zone 
   name example_zone 
   position 0.0 0.0 0.0
   size 1.0 1.0 1.0
   rotation 0.0
   # Add two GM, one OO
   zoneflag GM 2 OO
   flag L SW good bad
   team 0 1 2 3 4
   safety 1 2 3 4
 end

Valid parameters for the zone are

position Defines the position of the zone in the word (x/y/x)
size Defines the size of the zone (rectangular prism)
rotation Defines a rotation around the Z axis for the box, in degrees.
zoneflag Generates the flags listed inside this zone (adding "flag n" for the quantity). The flags will be generated specifically for the zone, regardless of BZFS options.
flag Listed flags will spawn in the zone. The flags need to be specified in the map via BZFS options.


Appearance

Zones have no appearance in a map other than what they define (ex: flags or tank spawns).

History

Zones were added to BZFlag in version 2.0.0.

Editor Support

The zone object is not supported by any known editors.