ResetWaterLevel: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
Fernando187 (talk | contribs) (Remove obsolete Requirements section) |
||
(6 intermediate revisions by 3 users not shown) | |||
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. | ||
Line 10: | Line 7: | ||
bool resetWaterLevel () | bool resetWaterLevel () | ||
</syntaxhighlight> | </syntaxhighlight> | ||
{{OOP||[[Water]].resetLevel}} | |||
===Returns=== | ===Returns=== | ||
Line 22: | Line 21: | ||
addCommandHandler ( "resetwaterlevel", changeWaterLevelBackToNormal ) | addCommandHandler ( "resetwaterlevel", changeWaterLevelBackToNormal ) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==See Also== | ==See Also== | ||
{{Client water functions}} | {{Client water functions}} |
Latest revision as of 15:40, 7 November 2024
This function resets the water of the GTA world back to its default level. Water elements are not affected.
Syntax
bool resetWaterLevel ()
OOP Syntax Help! I don't understand this!
- Method: Water.resetLevel(...)
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 )
See Also
- getWaterLevel
- isWaterDrawnLast
- setWaterDrawnLast
- Shared
- createWater
- getWaterColor
- getWaterVertexPosition
- getWaveHeight
- resetWaterColor
- resetWaterLevel
- setWaterColor
- setWaterLevel
- setWaterVertexPosition
- setWaveHeight