CreateWater

From Multi Theft Auto: Wiki
Revision as of 02:35, 7 February 2009 by Arc (talk | contribs) (New page: __NOTOC__ {{Client function}} Creates an area of water. ==Syntax== <syntaxhighlight lang="lua">bool createWater ( float x1, float y1, float z1, float x2, float y2, float z2, float x3, float y3, float z3,...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Creates an area of water.

Syntax

bool createWater ( float x1, float y1, float z1, float x2, float y2, float z2, float x3, float y3, float z3, float x4, float y4, float z4, [bool shallow = false] )
bool createWater ( float x1, float y1, float z1, float x2, float y2, float z2, float x3, float y3, float z3, [bool shallow = false] )

Required Arguments

For creating a water quadrant:

  • x1, y1, z1: position of bottom left corner
  • x2, y2, z2: position of bottom right corner
  • x3, y3, z3: position of top left corner
  • x4, y4, z4: position of top right corner

For creating a water triangle:

  • x1, y1, z1: position of bottom/top left corner
  • x2, y2, z2: position of bottom/top right corner
  • x3, y3, z3: position of top/bottom corner

Optional Arguments

  • shallow: makes the water shallow if true.

Returns

Returns true if successful, false otherwise.

See Also