setWaterDrawnLast
Client-side
Server-side
Shared
Manual Review Required
Please finish this page using the corresponding Old Wiki article. Go to Contribution guidelines for more information.
This function changes the water rendering order.
Syntax
bool setWaterDrawnLast ( bool bEnabled )Required Arguments
- bEnabled: A boolean value determining whether water should be drawn last.
Returns
- bool: value
Returns true if the rendering order was changed successfully, false otherwise.
Code Examples
shared
This example toggles water to be drawn last.
function toggleWaterDrawnLast () local bWaterDrawnLast = not isWaterDrawnLast() outputChatBox (string.format('setWaterDrawnLast: %s', tostring(bWaterDrawnLast))) return setWaterDrawnLast (bWaterDrawnLast)endaddCommandHandler ('togglewater', toggleWaterDrawnLast)