ResetWaterLevel: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
{{Server client function}} | {{Server client function}} | ||
This function resets the water of the GTA world back to its default level. [[water|Water elements]] are not affected. | This function resets the water of the GTA world back to its default level. [[water|Water elements]] are not affected. | ||
Revision as of 18:02, 11 February 2012
This function resets the water of the GTA world back to its default level. Water elements are not affected.
Syntax
bool resetWaterLevel ()
Returns
Returns true if water level was reset correctly, false otherwise.
Example
This example adds a command resetwaterlevel with which a player can reset the water level.
function changeWaterLevelBackToNormal () resetWaterLevel () end addCommandHandler ( "resetwaterlevel", changeWaterLevelBackToNormal )
Requirements
This template will be deleted.
See Also
- getWaterLevel
- isWaterDrawnLast
- setWaterDrawnLast
- Shared
- createWater
- getWaterColor
- getWaterVertexPosition
- getWaveHeight
- resetWaterColor
- resetWaterLevel
- setWaterColor
- setWaterLevel
- setWaterVertexPosition
- setWaveHeight