Difference between revisions of "Zone"

From BZFlagWiki
Jump to: navigation, search
(New page: 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...)
 
m (spelling/format)
Line 6: Line 6:
 
   zone  
 
   zone  
 
     name example_zone  
 
     name example_zone  
     position 0.0 0.0 0.0 # Where is the zone?
+
     position 0.0 0.0 0.0
     size 1.0 1.0 1.0 # The size of the zone
+
     size 1.0 1.0 1.0
     rotation 0.0 # The rotation of the zone
+
     rotation 0.0
     zoneflag GM,2 OO # Actually generates each flag listed w/in this zone (add ,n for quantity)
+
     zoneflag GM,2 OO
     flag L SW good bad # where flag may spawn
+
     flag L SW good bad
     team 0 1 2 3 4 # where players may spawn
+
     team 0 1 2 3 4
     safety 1 2 3 4 # dropped team flags will fly to the closest safety zone
+
     safety 1 2 3 4
 
   end
 
   end
  
 
Valid parameters for the zone are
 
Valid parameters for the zone are
*'''position'''; Defines the position of the zone in the word
+
*'''position''': Defines the position of the zone in the word (x/y/x)
*'''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)
+
*'''zoneflag''': Generates the flags listed inside this zone (adding flag,n for the quantity)
*'''flag'''; Listed flags will spawn in the zone.
+
*'''flag''': Listed flags will spawn in the zone.
*'''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).
*'''saftey'''; Team flags listed here will fly to the closest safety zone when dropped (0 = Rogue, 1 = Red, 2 = Green, 3 = Blue, 4 = Purple).
+
*'''saftey''': Team flags listed here will fly to the closest safety zone when dropped (0 = Rogue, 1 = Red, 2 = Green, 3 = Blue, 4 = Purple).
  
==Appearence==
+
==Appearance==
Zones have no appearence in a map other than what they define (ex: flags or tank spawns).
+
Zones have no appearance in a map other than what they define (ex: flags or tank spawns).
  
 
==History==
 
==History==

Revision as of 01:09, 24 March 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
   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)
  • flag: Listed flags will spawn in the zone.
  • team: Team players will spawn (0 = Rogue, 1 = Red, 2 = Green, 3 = Blue, 4 = Purple).
  • saftey: Team flags listed here will fly to the closest safety zone when dropped (0 = Rogue, 1 = Red, 2 = Green, 3 = Blue, 4 = Purple).

Appearance

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

History

Editor Support

The zone object is not supported by any known editors.