Space Engineers

Space Engineers

评价数不足
Security System Script
   
奖励
收藏
已收藏
取消收藏
标签: other_script
文件大小
发表于
375.621 KB
2 月 14 日 上午 1:29
1 项改动说明 ( 查看 )

订阅以下载
Security System Script

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

The script I modified can be found here:
https://psteamcommunity.yuanyoumao.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.