Space Engineers

Space Engineers

Alarm - Battle Ready with one click (Update 2021)
 This topic has been pinned, so it's probably important
Zer0Gamler  [developer] 4 Sep, 2021 @ 12:14am
Installation guide! (with my changes)
Installation:

1. insert the code into a programmable block
2. Add a interior light named "AlarmOn" somewhere on your ship / station
3. Add a group named "AlarmBlocks". Add as many lights, turrets, sound blocks, doors, refinerys and text panels as you like. Only this blocks will be modified by the alarm, all others will be left alone.

4. Done. The alarm will now get started when you manually turn on the "AlarmOn" light or if a block with a console on it gets damaged (damage to armor blocks can't be queried

with ingame programming,unfortunatly.) Turn off the alarm by turning off the "AlarmOn" light.

Configuration:

The first few lines of the script (not counting the comments, marked by // ) are dedicated to configuration variables.
You can modify the text written to text panels, change the color of the alarm lights or the keywords that are searched in the "IN" Textpanels

Update 2015-03-29:

- can now trigger timer blocks on start or end of alarm. Just add them to "AlarmBlocks" group. Normally, timer blocks are called on start of the alarm. End their name with "END" and they will instead be called at the end of the alarm.
- doors can be opened instead of closed during alarm, just add "OPEN" to the end of the name.
- script can search for certain keywords in text panels and sound the alarm if found. Only works for text panels in "AlarmBlocks" group that else have a name ending with "IN". Useful in combination with other scripts that communicate via text panel too. The keywords are configurable

Disclaimer:

Be warned if you add many, complex lighting settings to the "AlarmBlock" group. The script is designed to reset all light settings back to their original settings when you end

the alarm, HOWEVER I can't guarantee that this will ALWAYS work.