SetFogDistance: 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 setFogDistance ( float distance ) </syntaxhighlight>")
 
No edit summary
Line 1: Line 1:
__NOTOC__
__NOTOC__
{{Server client function}}
{{Server client function}}
{{Server client function}}
__NOTOC__
This function changes the visible distance of fog.


==Syntax==
==Syntax==
<syntaxhighlight lang="lua">bool setFogDistance ( float distance )</syntaxhighlight>
===Returns===
Returns a ''bool''.
==Example==
<section name="Server and Client" class="both" show="true">
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
bool setFogDistance ( float distance )
function fogdistance ( )
    setFogDistance(1.0)
end
addCommandHandler ( "fog", fogdistance )
</syntaxhighlight>
</syntaxhighlight>
</section>
==See Also==
{{World functions}}
[[ru:getGameSpeed]]

Revision as of 10:11, 8 November 2013