mrennie wrote:
GetSimulationTime gives the amount of time, in seconds, that the scenario had been running, not the absolute time of day - for that, you need to do:
local SecondsAfterMidnight= SysCall ("ScenarioManager:GetTimeOfDay") -- time since midnight, in seconds, of the current scenario
So at 8AM, it would be 28,800 seconds.
Thanks Mike, I've seen that function mentioned before, but I can't remember where. What time do all the night nodes fire up in the sim?
EDIT- Oh, I think chacal said between 8p and 8a.
I foresee two scenarios, the first is where the script only runs between 'sunset' and 'sunrise', or it runs all the time, but only calls the nodes at night. The only thing I'm worried about is that when night transitions to day, it will leave the night node still rendered, just not animated. Papa, sorry to bug you again man, but I believe that this is my final question on the matter...