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.
WaterLevel: Difference between revisions
		
		
		
		Jump to navigation
		Jump to search
		
 New page: 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== The code for a wate...  | 
				 added wiki table  | 
				||
| (9 intermediate revisions by 4 users not shown) | |||
| 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}}  | |||
|-  | |||
| {{Hl3}} |'''Parameter'''   | |||
| {{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 water created with the water level   | 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.  | ||
==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   | The waterLevel object is only fully supported by the [[BZWTools]] blender plug-in.  | ||
[[Category:  | [[Category:Map Making]]  | ||
[[Category:  | [[Category:Map Objects]]  | ||
Latest revision as of 21:56, 1 December 2016

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
The code for a waterLevel object is as follows
waterLevel name example_waterlevel height -1.0 end  | 
Valid parameters for a waterLevel object are:
| Parameter | 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 Materials parameter and use them to override it's default look. | 
The waterLevel object can only be specified once in a map.
Appearance
The default texture used for water is a lighter version of the pyramid texture. The water created with the water level will cover the entire world boundary.
History
The options object was added in v2.0.0.
Editor Support
The waterLevel object is only fully supported by the BZWTools blender plug-in.