ResetSkyGradient: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(New page: __NOTOC__ {{Server client function}} This function allows restoring of a changed sky gradient as a result of setSkyGradient. ==Syntax== <syntaxhighlight lang="lua"> bool resetSkyGradient() </syntaxhighlight> ...)
 
No edit summary
Line 12: Line 12:


==Example==
==Example==
This page does not have an example
<section name="Server and Client" class="both" show="true">
This example reset the sky gradient.
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
--add an example here
addCommandHandler("resetsky",
  function()
    resetSkyGradient()
  end
)
</syntaxhighlight>
</syntaxhighlight>
</section>


==See Also==
==See Also==
{{World functions}}
{{World functions}}
[[Category:Needs_Example]]

Revision as of 11:52, 14 May 2009

This function allows restoring of a changed sky gradient as a result of setSkyGradient.

Syntax

bool resetSkyGradient()

Returns

Returns true if sky color was reset correctly, false otherwise.

Example

Click to collapse [-]
Server and Client

This example reset the sky gradient.

addCommandHandler("resetsky",
  function()
    resetSkyGradient()
  end
)

See Also