This wiki is archived and useful information is being migrated to the main bzflag.org website
Editing Zone
Warning: The database has been locked for maintenance, so you will not be able to save your edits right now. You may wish to copy and paste your text into a text file and save it for later.
The administrator who locked it offered this explanation: Archived wiki
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | A Zone is a | + | A Zone is a [[BZW]] map structure that is only a rectangular prism area for spawn or flag zones. |
==Code== | ==Code== | ||
The code for a zone is as follows: | The code for a zone is as follows: | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | zone | |
− | + | name example_zone | |
+ | position 0.0 0.0 0.0 # Where is the zone? | ||
+ | size 1.0 1.0 1.0 # The size of the zone | ||
+ | rotation 0.0 # The rotation of the zone | ||
+ | zoneflag GM,2 OO # Actually generates each flag listed w/in this zone (add ,n for quantity) | ||
+ | flag L SW good bad # where flag may spawn | ||
+ | team 0 1 2 3 4 # where players may spawn | ||
+ | safety 1 2 3 4 # dropped team flags will fly to the closest safety zone | ||
+ | end | ||
− | == | + | Valid parameters for the zone are |
− | Zones have no | + | *'''position'''; Defines the position of the zone in the word |
+ | *'''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). | ||
+ | |||
+ | ==Appearence== | ||
+ | Zones have no appearence in a map other than what they define (ex: flags or tank spawns). | ||
==History== | ==History== | ||
− | |||
==Editor Support== | ==Editor Support== | ||
The zone object is not supported by any known editors. | The zone object is not supported by any known editors. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− |