This wiki was in read-only mode for many years, but can now be edited again. A lot of information will need to be updated.
Zone: Difference between revisions
 you can't actually do more than one flag per "zoneflag". this might be the same for "flag", but i don't know (i just use zoneflag)  | 
				|||
| Line 13: | Line 13: | ||
     zoneflag GM 2  |      zoneflag GM 2  | ||
     zoneflag OO  |      zoneflag OO  | ||
     flag L SW good bad  |     # cause laser, shockwave  | ||
    # good and bad flags to spawn in the zone  | |||
     flag L  | |||
    flag SW  | |||
    flag good  | |||
    flag bad  | |||
     team 0 1 2 3 4  |      team 0 1 2 3 4  | ||
     safety 1 2 3 4  |      safety 1 2 3 4  | ||
| Line 23: | Line 28: | ||
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   | zoneflag=Generates the flag listed inside this zone (adding "flag n" for the quantity). The flag will be generated specifically for the zone, regardless of BZFS options. One flag per call.  | ||
flag=Listed   | flag=Listed flag will spawn in the zone. The flags must be be specified for the server via BZFS options. One flag per call.  | ||
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).  | ||
safety=Team flags listed here will fly to the closest safety zone when dropped (1 - Red, 2 - Green, 3 - Blue, 4 - Purple).  | safety=Team flags listed here will fly to the closest safety zone when dropped (1 - Red, 2 - Green, 3 - Blue, 4 - Purple).  | ||
Revision as of 23:44, 18 August 2008
A Zone is a BZW map structure that is only a rectangular prism area for spawn or flag zones. The zone lets you create a specific area for a certain flag or a certain team to spawn.
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 zoneflag OO # cause laser, shockwave # good and bad flags to spawn in the zone flag L flag SW flag good flag bad team 0 1 2 3 4 safety 1 2 3 4 end  | 
Valid parameters for the zone are <properties> position=Defines the position of the zone in the word (x/y/z) 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 flag listed inside this zone (adding "flag n" for the quantity). The flag will be generated specifically for the zone, regardless of BZFS options. One flag per call. flag=Listed flag will spawn in the zone. The flags must be be specified for the server via BZFS options. One flag per call. team=Team players will spawn (0 - Rogue, 1 - Red, 2 - Green, 3 - Blue, 4 - Purple). safety=Team flags listed here will fly to the closest safety zone when dropped (1 - Red, 2 - Green, 3 - Blue, 4 - Purple). </properties>
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.