SetWaterDrawnLast: Difference between revisions
Jump to navigation
Jump to search
Zangomangu (talk | contribs) mNo edit summary |
Zangomangu (talk | contribs) mNo edit summary |
||
Line 10: | Line 10: | ||
===Required Arguments=== | ===Required Arguments=== | ||
*'''bEnabled''': A boolean value determining whether water drawn last. | *'''bEnabled''': A boolean value determining whether water should be drawn last. | ||
===Returns=== | ===Returns=== |
Revision as of 14:30, 5 January 2014
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
Returns true if the rendering order was changed successfully, 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)
Requirements
This template will be deleted.
See Also
- getWaterLevel
- isWaterDrawnLast
- setWaterDrawnLast
- Shared
- createWater
- getWaterColor
- getWaterVertexPosition
- getWaveHeight
- resetWaterColor
- resetWaterLevel
- setWaterColor
- setWaterLevel
- setWaterVertexPosition
- setWaveHeight