GetWaterVertexPosition

From Multi Theft Auto: Wiki
Revision as of 23:33, 13 February 2009 by Arc (talk | contribs) (New page: __NOTOC__ {{Client function}} Gets the position of a corner point of a water area. ==Syntax== <syntaxhighlight lang="lua">float float float getWaterVertexPosition ( water theWater, int vertexIndex )</cod...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Gets the 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