ResetFarClipDistance

From Multi Theft Auto: Wiki
Revision as of 13:14, 3 August 2014 by Myonlake (talk | contribs) (Updated note)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This function resets the far clip distance to its default state.

[[{{{image}}}|link=|]] Note: The function will not reset far clip distance client-side, unless it is relying on a value set by the server.
[[{{{image}}}|link=|]] Note: The function will reset the far clip distance to false server-side, as there is no default value to begin with.

Syntax

bool resetFarClipDistance ( )

Returns

Returns true if operation was successful, false otherwise.

Example

This example will demonstrate basic functionality of the function.

setFarClipDistance( 1200 )
outputDebugString( "Render distance: " .. getFarClipDistance( ) )
resetFarClipDistance( )
outputDebugString( "New render distance: " .. tostring( getFarClipDistance( ) ) )

See Also