SetWaterVertexPosition: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
{{ | {{Server client function}} | ||
Sets the world position of a corner point of a water area. ''Be careful with this function. San Andreas is very picky about the positioning of water vertices and will crash if it doesn't like what you throw at it.'' | Sets the world position of a corner point of a water area. ''Be careful with this function. San Andreas is very picky about the positioning of water vertices and will crash if it doesn't like what you throw at it.'' | ||
Line 18: | Line 18: | ||
==See Also== | ==See Also== | ||
{{ | {{Water functions}} |
Revision as of 18:07, 2 March 2009
Sets the world position of a corner point of a water area. Be careful with this function. San Andreas is very picky about the positioning of water vertices and will crash if it doesn't like what you throw at it.
Syntax
bool setWaterVertexPosition ( water theWater, int vertexIndex, float x, float 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.
See Also
- createWater
- getWaterColor
- getWaterVertexPosition
- getWaveHeight
- resetWaterColor
- resetWaterLevel
- setWaterColor
- setWaterLevel
- setWaterVertexPosition
- setWaveHeight