ResetFarClipDistance: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "__NOTOC__ {{Server client function}} ==Syntax== <syntaxhighlight lang="lua"> bool resetFarClipDistance() </syntaxhighlight>")
 
("Added" resetFarClipDistance( ) function page)
Line 1: Line 1:
{{Server client function}}
__NOTOC__
__NOTOC__
{{Server client function}}
This function resets the far clip distance to its default state.


==Syntax==
==Syntax==
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
bool resetFarClipDistance()
bool resetFarClipDistance ( )
</syntaxhighlight>
</syntaxhighlight>
===Returns===
Returns ''true'' if operation was successful, ''false'' otherwise.
==Example==
This example will demonstrate basic functionality of the function.
<syntaxhighlight lang="lua">
setFarClipDistance( 1200 )
outputDebugString( "Render distance: " .. getFarClipDistance( ) )
resetFarClipDistance( )
outputDebugString( "New render distance: " .. tostring( getFarClipDistance( ) ) )
</syntaxhighlight>
==See Also==
{{World_functions}}

Revision as of 13:01, 3 August 2014

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

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