GetFogDistance: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(→Syntax) |
||
Line 5: | Line 5: | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
float getFogDistance () | float getFogDistance () | ||
</syntaxhighlight> | |||
==Example== | |||
<syntaxhighlight lang="lua"> | |||
function fogDistance() | |||
outputChatBox("Your fog distance is: ".. getFogDistance()) | |||
end | |||
addCommandHandler("fog", fogDistance) | |||
</syntaxhighlight> | </syntaxhighlight> |
Revision as of 06:12, 10 April 2014
Syntax
float getFogDistance ()
Example
function fogDistance() outputChatBox("Your fog distance is: ".. getFogDistance()) end addCommandHandler("fog", fogDistance)