SetMinutesAfterMidnight (Method): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>ArceusInator
example
>Camoy
No edit summary
Line 1: Line 1:
<onlyinclude>{{Method|name = SetMinutesAfterMidnight
<onlyinclude>{{Method
|name = SetMinutesAfterMidnight
|arguments = [[number]] '''minutes'''
|arguments = [[number]] '''minutes'''
|returns = [[nil]]
|description = Sets the amount of minutes that have passed after midnight.
|description = Sets the amount of minutes that have passed after midnight.
|object = Lighting
|object = Lighting
}}</onlyinclude>
}}</onlyinclude>


{{clear floats}}


 
{{Example|<pre>
 
game.Lighting:SetMinutesAfterMidnight( 840 ) </pre> Which is equal to... <pre>
 
game.Lighting.TimeOfDay = "14:00:00"</pre> Because... <pre>
 
print( 840 / 60 ) --> 14</pre>}}
 
 
 
 
 
 
 
 
 
 
 
{{Example|<pre>game.Lighting:SetMinutesAfterMidnight( 840 )
 
-- Would essentialy be the same as
 
game.Lighting.TimeOfDay = "14:00:00"
 
-- Because
 
print( 840 / 60 ) --> 14
 
-- Understand?</pre>}}
[[Category:Methods]]
[[Category:Methods]]

Revision as of 14:02, 31 December 2010

SetMinutesAfterMidnight( number minutes )
Returns nil
Description: Sets the amount of minutes that have passed after midnight.
Member of: Lighting


Example
game.Lighting:SetMinutesAfterMidnight( 840 ) 
Which is equal to...
game.Lighting.TimeOfDay = "14:00:00"
Because...
print( 840 / 60 ) --> 14