IsWaterDrawnLast: Difference between revisions
Jump to navigation
Jump to search
Zangomangu (talk | contribs) mNo edit summary |
Fernando187 (talk | contribs) (Remove obsolete Requirements section) |
||
Line 21: | Line 21: | ||
addCommandHandler ('togglewater', toggleWaterDrawnLast) | addCommandHandler ('togglewater', toggleWaterDrawnLast) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==See Also== | ==See Also== | ||
{{Client water functions}} | {{Client water functions}} |
Latest revision as of 17:08, 7 November 2024
This function determines whether water is drawn last in the rendering order.
Syntax
bool isWaterDrawnLast ( )
Returns
Returns true if water is drawn last in the rendering order, false otherwise.
Example
This example toggles water to be drawn last.
function toggleWaterDrawnLast () local bWaterDrawnLast = not isWaterDrawnLast() outputChatBox (string.format('setWaterDrawnLast: %s', tostring(bWaterDrawnLast))) return setWaterDrawnLast (bWaterDrawnLast) end addCommandHandler ('togglewater', toggleWaterDrawnLast)
See Also
- getWaterLevel
- isWaterDrawnLast
- setWaterDrawnLast
- Shared
- createWater
- getWaterColor
- getWaterVertexPosition
- getWaveHeight
- resetWaterColor
- resetWaterLevel
- setWaterColor
- setWaterLevel
- setWaterVertexPosition
- setWaveHeight