Space Engineers

Space Engineers

62 betyg
[infal] Light Flicker
   
Utmärkelse
Favorit
Favoritmarkerad
Avfavoritmarkerad
Filstorlek
Lades upp
Uppdaterades
5.184 KB
12 jul, 2018 @ 2:44
16 jul, 2018 @ 16:05
8 ändringsnotiser ( visa )

Abonnera för att ladda ner
[infal] Light Flicker

Beskrivning
This script lets you have lights that flicker randomly rather than uniform blinking, giving a sort of faulty or maybe even horror ambience.




Lights are added and removed by run argument, so you only need one programmable block for multiple lights and you can easily change the actively flickering lights with a sensor block (or button, or timer, etc). So when a player enters an area that they'll actually be able to see the light flicker, add the light to the flicker script. When the player leaves the area, remove the light.

If there are no lights to be processed, the script will go dormant so that it's not just running for no reason.

The flickering effect is generated by turning the light on and off and adjusting the intensity. Every now and then the flickering will pause for a few seconds and the light will appear to be 'fixed' but then the flickering returns.


to add a single light, run the programmable block with the argument

-l "My Light" -add

and it will start flickering randomly.
To set the light back to it's default settings, no flicker:

-l "My Light" -remove


If you want to batch add/remove multiple lights at once you can use the -g [group name] instead of -l [light name]
eg:
-g "Light Group 1" -add
-g "Light Group 1" -remove
21 kommentarer
Into 15 okt, 2024 @ 17:30 
Would you mind making Commands for
const int OnOffChance = 70; // percent
const int DimChance = 8; // percent
const int PauseChance = 20; // percent
const int PauseMin = 35000; // milliseconds
const int PauseMax = 78000; // milliseconds
as well?
Into 10 sep, 2024 @ 1:09 
Love this mod and wanted to use it on my rover as well, but without having for every set of lights an Event Controller (which would be plenty) I just get a laser light show. Would be neat if the script would recognize if lights are turned on or off, instead of having to run script commands.
wilgee 19 dec, 2023 @ 10:45 
Great Job !!!!!:steamthumbsup:
Headhunter Echo 6 aug, 2023 @ 8:03 
Hello, sorry to bother you! There seems to be an error when I try to run this script. It says theres an invalid boolean. Any idea how I can fix this?
Sevyrs 22 jul, 2021 @ 21:02 
This will go great with our Alien themed deals and the server we plan to host. Very nice. Subbed and upped.
Commander Link 5 feb, 2021 @ 16:13 
this is great quality. SE needs more horror.
Lampglow 20 dec, 2020 @ 4:09 
How do you add this into the game? I subscribed but I don't see this in the list of mods nor scripts. What am I missing?
infal  [skapare] 18 dec, 2020 @ 17:16 
Belfontan; I haven't looked at this script for a very long time but just reading through the code, it changes the on/off state, the radius, and the intensity values.

When you add a light (or group of) it stores the original values and restores those values when you remove the light from the script. (but only for on/off, intensity and radius)

If you have another script modifying on/off, radius or intensity you will probably see some undesired result, but for color and blinking settings it should be fine as this script doesn't change those at all.
Belfontan 14 dec, 2020 @ 19:47 
Absolutely great idea!
Will it interfere with color changing scripts?`
Can I add one or two lights out of a group of a dozen lights whose color and blinking status is changed by another script?

I really want to try it asap!
Primal_DLove 6 jan, 2019 @ 14:53 
would it be possible to use this for/ or make a version that does this with lcd type panels?