Space Engineers

Space Engineers

Not enough ratings
Security System Script
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
375.621 KB
14 Feb @ 1:29am
1 Change Note ( view )

Subscribe to download
Security System Script

Description
This is an updated version of Vitkan's Security System Script. Updated by ChatGPT 4o.

The script I modified can be found here:
https://steamhost.cn/steamcommunity_com/workshop/filedetails/?id=523563427

It appears that LeonserGT or Mahtrok updated Vitkan's version to add a percentage damage check and if name contains checks.

Frankly so many people worked on it, its probably better to just list everyone's names that did work on it than to tell which parts who did what on. xD

------------------------

This script checks a grid to see if its been damaged by weapons fire or if someone is trying to grind terminal blocks to steal the ship. Once it detects one of these incidents, it finds a timer block with [Security] in the name and runs those functions.

I've asked GPT to add echos to the script for testing purposes, and to add a self run system to the script can run its self. You no longer need a timer block to run the script, as it will run its self after its run once.

It will also output wabbly line in the terminal window for you to see that the script is actively running when you are modifying things and testing it and it will sleep for a duration of time upon a hack so as to not rapidly fire the timer block functions.

All you need to do, is add a programming block to the grid you want it on, then add a timer block with [Security] in the name and put whatever you want in the timer block that you want to trigger upon attack or hack.

I may also attempt to later add support for hacking computers mod, if I can get GPT to help me with that. I'm no coder, I just wanted a script that could run without a timer block telling it to do so and thought, while I'm at it, might as well make a few more changes since GPT was doing the work anyway.