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 = [[ | |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}} | ||
You can print the moon phase | {{Example|You can print the current moon phase by doing this: | ||
{{code and output | |||
{{ | |code=print(game.Lighting:GetMoonPhase()) | ||
print( game.Lighting:GetMoonPhase() | |output=0.75 | ||
}}}} | |||
==Notes== | ==Notes== | ||
* The phase will always be 0.75. | * The phase will always be 0.75. | ||
* | * 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:
Notes
- The phase will always be 0.75.
- The moon phase is currently unchangeable.