getWaterVertexPosition
Client-side
Server-side
Shared
Pair: setWaterVertexPosition
This page is incomplete! Help wanted!
Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.
Gets the world position of a vertex (i.e. corner) of a water area. Each water area is either a triangle or quad (rectangle) so each has 3 or 4 corners.
Syntax
getWaterVertexPosition ( )Code Examples
server
function water() local water = createWater(1866, -1444, 10, 1968, -1442, 10, 1866, -1372, 10, 1968, -1370, 10); -- create water element
local x, y, z = getWaterVertexPosition(water, 1); -- get first vertex position of our water element
outputChatBox("Water first vertex position X: "..x.." Y: "..y.." Z: "..z);end