SetWaterVertexPosition: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
{{Server client function}} | {{Server client function}} | ||
{{Needs_Example}} | |||
Sets the world position of a corner point of a water area. | Sets the world position of a corner point of a water area. | ||
Line 24: | Line 25: | ||
==See Also== | ==See Also== | ||
{{Water functions}} | {{Water functions}} | ||
Revision as of 12:55, 2 January 2014
Script Example Missing Function SetWaterVertexPosition needs a script example, help out by writing one. | |
Before submitting check out Editing Guidelines Script Examples. |
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
See Also
- createWater
- getWaterColor
- getWaterVertexPosition
- getWaveHeight
- resetWaterColor
- resetWaterLevel
- setWaterColor
- setWaterLevel
- setWaterVertexPosition
- setWaveHeight