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

Editing WaterLevel

Jump to: navigation, search

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:
[[image:Box_water.jpg|frame|right|Example of a map with waterLevel set]]
 
 
A waterLevel object is a [[BZW]] map structure that defines a plane of water that spans the entire map. This water plane is deadly to all tanks that cross it.
 
A waterLevel object is a [[BZW]] map structure that defines a plane of water that spans the entire map. This water plane is deadly to all tanks that cross it.
  
 
==Code==
 
==Code==
 
The code for a waterLevel object is as follows
 
The code for a waterLevel object is as follows
{|
+
 
|
+
 
  waterLevel
 
  waterLevel
 
   name example_waterlevel
 
   name example_waterlevel
 
   height -1.0
 
   height -1.0
 
  end
 
  end
|}
+
 
 
Valid parameters for a waterLevel object are:
 
Valid parameters for a waterLevel object are:
{|{{Prettytable}}
+
*name : the name of the water level, generally unused.
|-
+
*height : the value in world units of the water. Values less then 0 turn the water off. No water is the default.
| {{Hl3}} |'''Parameter'''
+
*materials : the water object will take any valid [[Materials]] parameter and use them to override it's default look.
| {{Hl3}} |'''Description'''
+
 
|-
+
| '''name''' || the name of the water level, generally unused.
+
|-
+
| '''height''' || the value in world units of the water. Values less then 0 turn the water off. No water is the default.
+
|-
+
| '''materials''' || the water object will take any valid [[Material]]s parameter and use them to override it's default look.
+
|}
+
 
The waterLevel object can only be specified once in a map.
 
The waterLevel object can only be specified once in a map.
  
 
==Appearance==
 
==Appearance==
The default texture used for water is a lighter version of the [[Pyramid|pyramid]] texture.  The water created with the water level will cover the entire world boundary.
+
The water created with the water level is light blue in color by default and will cover the entire world boundry.
 +
[[image:Box_water.jpg]]
 +
 
 
==History==
 
==History==
 
The options object was added in [[BZFlag 2.0.0|v2.0.0]].
 
The options object was added in [[BZFlag 2.0.0|v2.0.0]].
  
 
==Editor Support==
 
==Editor Support==
The waterLevel object is only fully supported by the [[BZWTools]] blender plug-in.
+
The options object is only fully supported by the [[BZWTools]] blender plug-in.
  
[[Category:Map Making]]
+
[[Category:Map_making]]
[[Category:Map Objects]]
+
[[Category:Map_Objects]]

Please note that all contributions to BZFlagWiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see BZFlagWiki:Copyrights for details). Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel | Editing help (opens in new window)

Templates used on this page: