Space Engineers

Space Engineers

Alarm Script - Battle Ready
14 Comments
Zer0Gamler 6 Sep, 2021 @ 8:40am 
This one here shows errors in the PB but still works so i did make an update my self with no timer support and added the rotary light from the deco DLC #2:
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2592996560
Hot Laundry 20 May, 2020 @ 11:07pm 
Does it still work on its own in 2020?
reload 14 Sep, 2019 @ 10:17pm 
Hey Izzzy, any chance of getting this working again?
MechNoxer 12 Apr, 2019 @ 12:27pm 
pls update for new vesion
HostageRPG 29 Mar, 2019 @ 1:53pm 
It would be great if it would add to text already on a text panel, rather than delete and replace it. Maybe not possible. Just a thought, and you asked for ideas
azfalt 11 Jan, 2019 @ 8:08pm 
Is there a limit to scripts if an amount of blocks are exeded?
I want to use this script in diferent scenarios on a large/small grid ship design. when i use the script with this:
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1607980611
the alarm script works as intended, but when i put this leg on to the ship its designed to work with, the alarm script stops to function and i get a message in the script menu:

Found exception while running script:
Object reference not set to an instance of an object
at Program.GetTotalDamage{}
at Program.Init{}
at Program.Main{}
at Sandbox.Game.Entities.Bloks.MyProgrammableBlok.<>c__DisplayClass26.<ExecuteCode>b__25(IMyGridProgram
program)

at Sandbox.Game.Entities.Blocks.MyProgramableBlock.RunSandboxedProgramAction(action'I
action.
String&
response)


Hope someone can tanslate the mening of the message i get from this alarm script and therby an explenation to why it wont run as intended.
azfalt 6 Jan, 2019 @ 12:48am 
@ronon_dex looks like we have to insert thatone manually, untill modder gets bck into updating this script, or maby someone els interily takes this task.
ronon_dex 15 Nov, 2018 @ 7:32am 
Program()
{
Runtime.UpdateFrequency = UpdateFrequency.Update1;
}

paste that in after "bool" and before "void Main()" so you dont need a timer block,and it will update a lot faster,if you lag,then change .Update to 100;
ronon_dex 15 Nov, 2018 @ 7:25am 
try using this too

Program()
{
Runtime.UpdateFrequency = UpdateFrequency.Update100;
}

ronon_dex 15 Nov, 2018 @ 7:17am 
Please make it so that you can erase the text panels
aviator1280 10 Jan, 2018 @ 11:54pm 
I still didn't try this script and I just founfd out from the original one which is https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=412005083 can fine also on youtube looking for Space Engineers alarm block. I will try now this updated version.
Nikolas March 23 Nov, 2017 @ 1:47pm 
might be a good idea to provide link to original script, for the user guide etc, and also, because its the right thing to do :)
izzzy80  [author] 26 Jun, 2017 @ 3:17pm 
Awsome thx
TheWarMaster97 22 Jun, 2017 @ 8:33am 
Replace the following lines with this:

line 230: s.Open = ((IMyDoor)block).OpenRatio > 0;
line 276: if(!block.CustomName.EndsWith(alarmString)) block.CustomName = block.CustomName + " " +alarmString;
line 333: block.CustomName = state.CustomName;