ResetWaterLevel: Difference between revisions
Jump to navigation
Jump to search
m (fix oop 2) |
m (fix typo) |
||
Line 8: | Line 8: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
{{OOP||Water.resetLevel}} | {{OOP||[[Water]].resetLevel}} | ||
===Returns=== | ===Returns=== |
Revision as of 14:30, 7 August 2016
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 )
Requirements
This template will be deleted.
See Also
- getWaterLevel
- isWaterDrawnLast
- setWaterDrawnLast
- Shared
- createWater
- getWaterColor
- getWaterVertexPosition
- getWaveHeight
- resetWaterColor
- resetWaterLevel
- setWaterColor
- setWaterLevel
- setWaterVertexPosition
- setWaveHeight