Extrude Ragu Posted July 31, 2020 Posted July 31, 2020 In my region, some objects use llGetTimeOfDay() to determine whether or not things like lights should be on or off. EEP day cycles can have varying day lengths, offsets etc. how will this effect llGetTimeOfDay()?
Fenix Eldritch Posted July 31, 2020 Posted July 31, 2020 Rider Linden has a thread in the EEP forum which outlines the LSL hooks. According to that, llGetTimeOfDay should be EEP aware. Quote llGetTimeOfDay/llGetRegionTimeOfDay Rider Linden Nov 08, 2018 Gets the number of seconds, with sub-second precision, since environmental midnight. llGetTimeOfDay returns this value for the current parcel, llGetRegionTimeOfDay returns the seconds since midnight for the entire region. Function float llGetTimeOfDay() float llGetRegionTimeOfDay( ) Caveats This function previously assumed a 4 hour day. Day length is now configurable for regions and parcels.
Rolig Loon Posted July 31, 2020 Posted July 31, 2020 Take good look at the scripting example in the wiki section that Fenix just mentioned. It's lovely and simple. I've played with it quite a bit recently, as Qie and others have too. The new EEP controls allow us to mess with the length of the day and also offer a much better way to decide when to toggle streetlights on and off. It's all quite fun. Remember, of course, that individual SL residents can always choose to override the shared environment settings -- that is, they can ignore EEP settings and just set their personal view to Midday or whatever. 2
Recommended Posts
Please take a moment to consider if this thread is worth bumping.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now