IsWaterDrawnLast

From Multi Theft Auto: Wiki
Revision as of 14:33, 5 January 2014 by Zangomangu (talk | contribs)
Jump to navigation Jump to search

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)

Requirements

This template will be deleted.

See Also