Element/Water: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(New page: {{New feature|3|1.0| *createWater }})
 
No edit summary
Line 1: Line 1:
{{New feature|3|1.0|
In San Andreas, the water in the game world (rivers, lakes, seas) is defined through a large number of water polygons, which can be quadrilateral or triangular. A water element represents one such polygon. You can create water elements with [[createWater]] or through a <water/> map element. For simplicity, water map elements only support .
*[[createWater]]
 
}}
==XML syntax==
<syntaxhighlight lang="xml"><water posX="" posY="" posZ="" sizeX="" sizeY=""/></syntaxhighlight>
 
===Required Attributes===
*'''posX, posY, posZ:''' the world coordinates of the center of the (rectangular) water ''surface''.
 
===Optional Attributes===
*'''sideX:''' the size of the water rectangle along the X axis. Defaults to 20.
*'''sideY:''' the size of the water rectangle along the Y axis. Defaults to 20.

Revision as of 20:01, 1 March 2009

In San Andreas, the water in the game world (rivers, lakes, seas) is defined through a large number of water polygons, which can be quadrilateral or triangular. A water element represents one such polygon. You can create water elements with createWater or through a <water/> map element. For simplicity, water map elements only support .

XML syntax

<water posX="" posY="" posZ="" sizeX="" sizeY=""/>

Required Attributes

  • posX, posY, posZ: the world coordinates of the center of the (rectangular) water surface.

Optional Attributes

  • sideX: the size of the water rectangle along the X axis. Defaults to 20.
  • sideY: the size of the water rectangle along the Y axis. Defaults to 20.