GetFogDistance

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

This function will tell you what is the current fog render distance.

[[{{{image}}}|link=|]] Note: The function will return false server-side if fog distance has not been set before the function is called.

Syntax

float getFogDistance ( )

Returns

Returns a float with the current fog render distance, false if the operation could not be completed.

Example

This example will demonstrate basic functionality of the function.

function fogDistance( )
	outputChatBox( "Fog distance is: " .. tostring( getFogDistance( ) ) )
end
addCommandHandler( "fog", fogDistance )

See Also