This is something I thought people could use. It's simply enough a system that handles lighting in a module. It will change the lighting based on the current DayNight Cycle.
The script itself has all the instructions needed in 3 simple steps.
But here's an example setup that works without downloading the erf and using the files there. If you download the erf, you have the lights/waypoints created for you. They use a naming convention so you can have multiple different sets of lights. Also you can fully specify the different daynight lights by using variables in the waypoints instead.
1. Create waypoints in your templates with tag "wp_daynight_light"
2. Edit the waypoint to have the variable "USE_NEAR_LIGHT" set to 1.
3. Create lights to your templates with the following resrefs:
4. Place the waypoint we made earlier in any place you're going to need lights that change states with cycles.
5. Place any one of those lights right next to all the waypoints. It can be as high as you want, but must not be too far from the waypoint in X/Y directions.
6. Create a waypoint with tag "LIGHT_MANAGER" anywhere in your area. Only one of these per module.
Yeah you could do that. Though I don't think there's much to gain in performance in any case. We're only dealing with a couple lights per area, and it's only doing something every 10 minutes or so on average, in the few interior areas people might be at any one time. But you're right, "caching" the light objects would be more efficient. _________________________ Logical arguments tend to favour those who have much faith vested in them. Often accompanied by an epic skill to resist the arguments against.
10 - A Masterpiece, Genuinely Groundbreaking 9 - Outstanding, a Must Have 8 - Excellent, Recommended to Anyone 7 - Very Good, Deserves a Look 6 - Good, Qualified Recommendation 5 - Fair, Solid yet Unremarkable 4 - Some Merit, Requires Improvements 3 - Poor Execution, Potential Unrealized 2 - Very Little Appeal 1 - Not Recommended to Anyone