SetWaterVertexPosition: Difference between revisions
Jump to navigation
Jump to search
m (Needs example) |
No edit summary |
||
Line 3: | Line 3: | ||
Sets the world position of a corner point of a water area. | Sets the world position of a corner point of a water area. | ||
{{Note|X and Y positions will be rounded to the nearest even integer. i.e. -2, 0, 2, 4 etc.}} | |||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="lua">bool setWaterVertexPosition ( water theWater, int vertexIndex, | <syntaxhighlight lang="lua">bool setWaterVertexPosition ( water theWater, int vertexIndex, int x, int y, float z )</syntaxhighlight> | ||
===Required Arguments=== | ===Required Arguments=== |
Revision as of 07:37, 7 October 2013
Sets the world position of a corner point of a water area.
Syntax
bool setWaterVertexPosition ( water theWater, int vertexIndex, int x, int y, float z )
Required Arguments
- theWater: the water element of which to change a vertex.
- vertexIndex: the index of the vertex to move. Values range from 1 to 4 for water quads, and 1 to 3 for triangles.
- x: the X coordinate to set for the vertex.
- y: the Y coordinate to set for the vertex.
- z: the Z coordinate to set for the vertex.
Returns
Returns true if successful, false otherwise.
Example
--TODO