ResetWaterColor: Difference between revisions
Jump to navigation
Jump to search
(New page: __NOTOC__ {{Client function}} This function reset the water color of the GTA world to default. ==Syntax== <syntaxhighlight lang="lua"> bool resetWaterColor () </syntaxhighlight> ===Returns=== Returns ''true'' if...) |
m (fix typo) |
||
(10 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
{{ | {{Server client function}} | ||
This function reset the water color of the GTA world to default. | This function reset the water color of the GTA world to default. | ||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
bool resetWaterColor () | bool resetWaterColor ( ) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
{{OOP||[[Water]].resetColor}} | |||
===Returns=== | ===Returns=== | ||
Line 15: | Line 17: | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
function changeWaterBackToNormal () | function changeWaterBackToNormal () | ||
resetWaterColor () | |||
end | end | ||
addCommandHandler ( "resetwatercolor", changeWaterBackToNormal ) | addCommandHandler ( "resetwatercolor", changeWaterBackToNormal ) | ||
Line 21: | Line 23: | ||
==See Also== | ==See Also== | ||
{{Client | {{Client water functions}} |
Latest revision as of 14:30, 7 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(...)
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