Space Engineers

Space Engineers

Not enough ratings
Wongkaying's Daylight sensor
2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
296.255 KB
11 Feb, 2022 @ 5:29pm
1 Change Note ( view )

Subscribe to download
Wongkaying's Daylight sensor

Description
This script, gives you the possibility to control groups of objects and / or individual objects depending on the brightness. This script was written to amtomatize the lights of my base. However, any object you can think of can be automated according to brightness.

Current Version:
Version: 1.0.0
Date: 22-02-12

Notice
This is the first version of the script as well as my first in Spaceengineers.
Furthermore, it remains to be seen whether this script will be further developed and matured.
The time as well as the reviews will show it.

Main features:
  • Daylight sensor: Acts depending on brightness
  • Manage groups: Can control groups
  • Manage single objects: Can control individual objects
  • Expandable: Quickly and easily expandable

Basic Setup:
  • Set up a programmable block with my script, check code, remember & exit and the block is ready to go!
  • Unfortunately, 2 timers are still needed at the moment. These can be named arbitrarily, but must contain the following keywords:
    TurnOffLight
    TurnOnLight
  • Place ONE solar panel in a suitable location and name it as desired. The name must contain the following keyword:
    DaylightSensor
  • Set up your groups and objects into the Timerblocks and done.
  • The keywords, can be customized in the config as desired

Config:
// Define the keywords // default names //string daylightTimerTurnOff = "TurnOffLight"; //string daylightTimerTurnOn = "TurnOnLight"; //string daylightSensor = "DaylightSensor"; string daylightTimerTurnOff = "TurnOffLight"; //Timer which turn off the lights string daylightTimerTurnOn = "TurnOnLight"; //Timer which turn on the lights string daylightSensor = "DaylightSensor"; //Solar panel which check the Brightness

Join my discord:

You need additional help, want to make suggestions or just want be up to date about my scripts? Join my discord server:

Follows shortly
4 Comments
Dog 9 Feb, 2023 @ 12:03am 
This is amazing! Thank you so much! This should be in the base game, Please keep this mod updated!
jivaii 17 Nov, 2022 @ 10:39pm 
I was hoping to get this to retract and extend solar wings based on light levels, but part of my problem seems to be my hinges are operating like rotors, and the script seems to toggle constantly
Wongkaying  [author] 9 Sep, 2022 @ 4:13am 
@royalrollin

I'm glad you like it and that it helps
royalrollin 29 Jul, 2022 @ 3:44pm 
That was exact what i´m looking for. Very useful and works well! Thanks:steamthis: