raf.sonneville Posted January 21 Posted January 21 Hi all... Is there a way with a command to detect if day or night view is on in simulation time fixed mode? Thanks Regards
Goetz Posted January 21 Posted January 21 (edited) Hello @raf.sonneville there's a condition time exceeded which you can use. You'll need to combine two conditions and invert the second. time exceeded = 6:00 and not time exceeded = 18:00 The Lua equivalent is if (layout.time > toTime("6:00")) and (layout.time < toTime("18:00")) then I hope that helps? Goetz Edited January 21 by Goetz Lua code corrected
Herman Posted January 21 Posted January 21 (edited) Hello @raf.sonneville Just a method I use to detect the change of day/night. Take a light giving object and put it in automatic mode for day/night. ( you may hide this reference object ) If there is a change in day / night the integrated switch will toggle. This EV reacts on it. Das ist nur eine Methode, mit der ich den Wechsel von Tag und Nacht erkenne. Nehmen Sie ein lichtgebendes Objekt und stellen Sie es in den automatischen Modus für Tag/Nacht. ( Sie können dieses Referenzobjekt ausblenden ) Wenn es eine Änderung in Tag / Nacht der integrierte Schalter umschalten. Dieser EV reagiert darauf. The advantage is that if you use other times , the reaction stays correct. Der Vorteil ist, dass die Reaktion auch dann korrekt bleibt, wenn Sie andere Zeiten verwenden. Regards, Herman Edited January 22 by Herman translation
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now