GetMoonPhase (Method): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Legend26
grammar
>JulienDethurens
No edit summary
Line 1: Line 1:
<onlyinclude>{{Method
<onlyinclude>{{Method
|name = GetMoonPhase
|name = GetMoonPhase
|returns = [[Number]] ''phase''
|returns = [[float]] ''phase''
|description = Returns the phase of the moon.
|description = Returns the phase of the moon.
|object = Lighting
|object = Lighting
Line 8: Line 8:
{{clear floats}}
{{clear floats}}


{{Example|<pre>
print( game.Lighting:GetMoonPhase() ) --> 0.75
</pre>}}


You can print the moon phase's value by doing this,
{{Example|You can print the current moon phase by doing this:
 
{{code and output
{{Example|<pre>
|code=print(game.Lighting:GetMoonPhase())
print( game.Lighting:GetMoonPhase() + 5 ) --> 5.75
|output=0.75
</pre>}}
}}}}


==Notes==
==Notes==


* The phase will always be 0.75.
* The phase will always be 0.75.
* Currently, the moon phase is unchangeable.
* The moon phase is currently unchangeable.


[[Category:Methods]]
[[Category:Methods]]

Revision as of 05:46, 20 January 2012

GetMoonPhase( )
Returns float phase
Description: Returns the phase of the moon.
Member of: Lighting


Example
You can print the current moon phase by doing this:
print(game.Lighting:GetMoonPhase())
0.75


Notes

  • The phase will always be 0.75.
  • The moon phase is currently unchangeable.