ResetWaterColor: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(Added oop syntax) |
||
Line 7: | Line 7: | ||
bool resetWaterColor ( ) | bool resetWaterColor ( ) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
{{OOP||[[water]]:resetColor|color}} | |||
===Returns=== | ===Returns=== |
Revision as of 17:52, 6 August 2016
This function reset the water color of the GTA world to default.
Syntax
bool resetWaterColor ( )
OOP Syntax Help! I don't understand this!
- Method: water:resetColor(...)
- Variable: .color
Returns
Returns true if water color was reset correctly, false otherwise.
Example
This example adds a command resetwatercolor with which a player can reset the water colour.
function changeWaterBackToNormal () resetWaterColor () end addCommandHandler ( "resetwatercolor", changeWaterBackToNormal )
See Also
- getWaterLevel
- isWaterDrawnLast
- setWaterDrawnLast
- Shared
- createWater
- getWaterColor
- getWaterVertexPosition
- getWaveHeight
- resetWaterColor
- resetWaterLevel
- setWaterColor
- setWaterLevel
- setWaterVertexPosition
- setWaveHeight