GetWaterVertexPosition: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
__NOTOC__
__NOTOC__
{{Client function}}
{{Server client function}}


Gets the world position of a corner point of a water area.
Gets the world position of a corner point of a water area.
Line 15: Line 15:


==See Also==
==See Also==
{{Client water functions}}
{{Water functions}}

Revision as of 18:07, 2 March 2009

Gets the world position of a corner point of a water area.

Syntax

float float float getWaterVertexPosition ( water theWater, int vertexIndex )

Required Arguments

  • theWater: the water element to get the vertex of
  • vertexIndex: the index of the vertex whose position to get. Values range from 1 to 4 for a water quad, or 1 to 3 for a triangle.

Returns

Returns the x, y and z coordinates of the specified vertex if successful, false otherwise.

See Also