Space Engineers

Space Engineers

(Servono più voti)
Wongkaying's Daylight sensor
2
   
Premio
Aggiungi ai preferiti
Preferito
Rimuovi dai preferiti
Dimensioni del file
Pubblicato in data
296.255 KB
11 feb 2022, ore 17:29
1 nota di rilascio ( visualizza )

Sottoscrivi per scaricare
Wongkaying's Daylight sensor

Descrizione
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 commenti
Dog 9 feb 2023, ore 0:03 
This is amazing! Thank you so much! This should be in the base game, Please keep this mod updated!
jivaii 17 nov 2022, ore 22:39 
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  [autore] 9 set 2022, ore 4:13 
@royalrollin

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