Space Engineers

Space Engineers

83 ratings
Isy's Light Control Script
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
1.401 KB
25 Sep, 2017 @ 6:47am
14 May, 2018 @ 7:27am
4 Change Notes ( view )

Subscribe to download
Isy's Light Control Script

In 1 collection by Isy
Isy's Mini Script Series
7 items
Description
A very basic script for toggling all lights on your base without specifying any groups. Optionally you can create whitelist or blacklist groups that can be used by the script.

Current Version:
Version: 1.0.1
Date: 2017-09-25

Main features:
  • Can toggle all lights on, off or based on the last state on/off
  • Groups to toggle only specific lights are supported
  • Blacklist support

Basic Setup:
  • set up a programmable block with the script
  • use the script in cockpits, button panels, etc.
  • no timer required
  • Note: Game has to be in experimental mode and ingame scripts have to enabled in world options!

Optional Setup:
  • run the script with one of the following commands: 'on', 'off'
  • create light groups and use them in the script to toggle only specific lights
  • create a blacklist light group that will not be toggled but all other lights will

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:
https://discord.gg/gY9aUUy

Wanna buy me a beer?

If you like my work, you can buy me a beer via PayPal:
http://paypal.me/derisy/1

Thanks to all my donators so far!
11 Comments
erik 16 Feb @ 12:29pm 
good evening no longer works an update maybe
Isy  [author] 28 Jan, 2022 @ 2:12am 
Sure, but for two lights, it's better to just create a group and toggle the group.. No need for a script here..
HUBERT THE ROCK 23 Jan, 2022 @ 8:40am 
does this also work for a back light of a car
Isy  [author] 24 Oct, 2019 @ 1:50am 
Try my "Light Color Changer" for that:

https://steamproxy.net/sharedfiles/filedetails/?id=1385882093
Gimboid 23 Oct, 2019 @ 7:54am 
Hey Isy, I love your scripts! there's one feature that would make this particular script 100x cooler, could you add the ability for arguments to change colours? for example:

- Run with Arguement RED - changes all grouped lights red
- Run with Arguement GREEN - changes all grouped lights to Green.

This would allow people to combine this with timer blocks and other scrips, for example airlock or hanger doors, where you could run the PB to turn the lights orange, then the doors open and after, turn the lights green, etc!
Jim Paper 22 Jan, 2018 @ 5:12pm 
Oh I see. I have a lesson to read carefully description sorry mate.
Isy  [author] 22 Jan, 2018 @ 5:02pm 
Yeah.. Same statement.. See my previous reply...
Jim Paper 22 Jan, 2018 @ 4:16pm 
What I meant was. If there is a day all light will turn off But on the Night Every light will turn it on
Isy  [author] 22 Jan, 2018 @ 10:09am 
That is not the purpose of this script.. If you want this functionality, try out my solar alignment script..
Jim Paper 22 Jan, 2018 @ 8:51am 
Just why. Add for this script if solar work light will be off but If it's dark light turn on?