Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Is it possible to do a day and night script with TimeOfDay instead of minutesaftermidnight?

Asked by
Prioxis 673 Moderation Voter
10 years ago

I'm making a survival game and temperature is going be based off of the TimeOfDay so could I use TimeOfDay to make a day and night script?

1 answer

Log in to vote
2
Answered by
hudzell 238 Moderation Voter
10 years ago

Yes. Just set the temperature it'll be after that hour, example:

if game.Lighting.TimeOfDay == "12:00:00" then
    temp.Value = 40
end
0
Thank you Prioxis 673 — 10y
Ad

Answer this question