Space Engineers

Space Engineers

Vitkan's Security System Script
79 Comments
LeonserGT  [author] 14 Feb @ 2:34am 
I just hope that designing a game to be really fun would remain exclusive human job 😅
Vas 14 Feb @ 1:50am 
Well, wasn't my work, GPT did it. :P

I asked for someone's help in a coding discord, but the only person responding was a jackass who likes to troll people, so I asked GPT and it did everything without ridiculing me once.

Its times like this I think its great AI is gonna replace people at everything. :|
LeonserGT  [author] 14 Feb @ 1:46am 
Nice work, thanks for the update😊
Vas 14 Feb @ 1:41am 
I uploaded it so you can check it out.
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3427056672
The credits portion might get a little confusing with all the updates and stuff. I tried to put some credits at the top of my upload.
Vas 14 Feb @ 1:14am 
I've got an update for your script, I dunno how to upload it to the workshop yet, but I also wanted to ask prior. It takes the timer block out of the requirement of running the script for one and adds some echo output to show the script is functioning.
BinaryKiller Recoded 19 Apr, 2021 @ 5:12am 
I was looking for something that turns my vessel/vehicle hostile if someone grinds the thing, can this do the same?
ABlueHairedFox 16 Dec, 2020 @ 2:34pm 
Ikr? It's so cool. People can look at the ads and actually find mods they probably never would have found
LeonserGT  [author] 15 Dec, 2020 @ 1:53am 
Yep, 90% of those ads are related to something made by community :lunar2019piginablanket:
ABlueHairedFox 14 Dec, 2020 @ 8:48pm 
I actually heard of this through the advertisements strewn around a city project one of my friends is working on lol
ZettDeEff 12 Apr, 2020 @ 4:22pm 
Never mind :steamfacepalm: But thx 4 u reply LeonserGT ;-)
LeonserGT  [author] 12 Apr, 2020 @ 3:58pm 
What you're doing wrong is using 4 year old script, that we do not maintain anymore. Sorry, but I'm sure there are plenty other security scripts that are solving what you need and more.
ZettDeEff 12 Apr, 2020 @ 12:49pm 
What the heck? The script seems to be responding. BUT! It only activates when I repair the grid after I damaged it and not vice versa. What am I doing wrong? :steamsad:
Mux 13 Jan, 2020 @ 11:21am 
how do you activate an "all clear" system?
Church.exe 27 Jan, 2018 @ 8:34am 
does this also work with hacked blocks, say if an enemy gains control over a block
Copycat80 29 Sep, 2017 @ 10:34am 
can this work if the grid is damaged?
Testerlordschaft 28 Sep, 2017 @ 12:14pm 
Thx a lot for your help!! Cool script by the way ;)
LeonserGT  [author] 28 Sep, 2017 @ 12:11pm 
And you want to force turrets to shoot allies? I doubt it's possible, at least with only PB scripts... also, no, that script is pretty simple and I, again, doubt that there's could be any friend-foe system in just PB script... to achieve this, we made a lot of work with ModAPI scripting in EEM - I guess it's impossible without mods =/
Testerlordschaft 28 Sep, 2017 @ 12:05pm 
maybe there is an argument i can run viktan to skip its search for grinding people and start directly shooting at them?
Testerlordschaft 28 Sep, 2017 @ 12:03pm 
it would need it for people from my own fraction to secure special areas. regular targets would only be enemys or am i wrong?
LeonserGT  [author] 28 Sep, 2017 @ 12:02pm 
Why script is needed then? You can do it by yourself, when time is up, it activates turrets - toggle them on, enable shooting more targets or whatever you desire
Testerlordschaft 28 Sep, 2017 @ 11:57am 
Hi, is it possible to trigger your skript this way: Player enters a room, sensor aktivates timer block, time is up, viktan gets activated and targets everyone in this room?
LeonserGT  [author] 8 Nov, 2016 @ 7:36am 
I believe you should ask directly the scripter - Deer with Beer (check co-authors, he's actually the original author, I just shared the script), I also redirected that question to him, but no reply for now
VSX 7 Nov, 2016 @ 6:20pm 
Author, if you want, I can add you and send my server log file to you, see if you can figure out what the problem is? I've already sent you a request, I hope you respond soon!
VSX 7 Nov, 2016 @ 6:21am 
I have no clue at all, and since the server auto-downloads the latest version from the workshop, I do not have control over how it is named/installed at all.
LeonserGT  [author] 7 Nov, 2016 @ 1:09am 
This seems ridicolous, since this is just ingame PB script, not mod script O_o
Maybe because of name itself and of symbol ' in it?
VSX 6 Nov, 2016 @ 6:57pm 
Ave!

I've installed your script on my server, and it seems that the logs are spewing out this error message:
2016-11-06 18:41:35.300 - Thread: 1 -> C:\Users\<redacted>\AppData\Local\Temp\Script.cs(11,5): Error: A namespace cannot directly contain members such as fields or methods

Similar messages are repeated as shown in this screenshot:
https://puu.sh/s964C/dfa856a59c.png (it goes down till about line 373)

Any idea what is causing the problem? I hope you'll reply soon, thanks!
LeonserGT  [author] 4 Sep, 2016 @ 1:56pm 
Alarm timer should toggle off PB with script, if you want to make some kind of cooldown for it, add one more timer, that will toggle on PB and be started with first timer, set on few mins for example. Then damage takend will trigger first timer once and after few mins will be reloaded and can be used again (but make sure you repaired damage)
squirt_reynolds 4 Sep, 2016 @ 1:39pm 
Hellooooo! I love the script... so thanks for your hard work on it. I am unfortunately having one small problem that I hope one of you nice folks can resolve for me - I have a very simple alarm setup using your script. The second timer simply plays my "alarm" sound block when one of my blocks takes damage. However, when the script block is triggering iteself instantly, it keeps re-triggering the sound block instantly. This doesn't sound nice. I added a delay to the first timer to decrease the number of times it restarts the second timer, but then my system doesn't trigger instantly when I take damage. I would really just like to have the sound block play once, and then for it to be over. Any suggestions? Thanks!
LeonserGT  [author] 6 Aug, 2016 @ 2:02pm 
It works for every type of damage - grinding or shooting, it even detects missing blocks, so collision damage also counts
John 6 Aug, 2016 @ 12:58pm 
Does this only work for grinding does physics damage and rocket damage trigger it too?
John 27 Jul, 2016 @ 2:39pm 
Nevermind there is a 0.1 but it doesn't work
LeonserGT  [author] 27 Jul, 2016 @ 2:29pm 
Oh, you're right - perhaps it got missed in one of the script updates, will bring it back asap, for now - find 0.1 number in second half of code - that's the damage value you need :)
John 27 Jul, 2016 @ 2:15pm 
There is no damage value comment on my code and i just downloaded it so it's not old.
Iliurgul 19 Mar, 2016 @ 5:17pm 
It works for me even in multiplayer server
Jolly 2 Feb, 2016 @ 6:32pm 
Does this still work?
Bananafrita 13 Dec, 2015 @ 1:39pm 
it dont work for me whhy
LeonserGT  [author] 7 Dec, 2015 @ 2:45pm 
Ugh, I'm sure that part was marked by comment inside script itself?
There's at least two comments inside it now:
- "this is the searched prefix, if you wanna change it"
- "this value is the taken damage, which will trigger script"
sorry, can't paste here this line for now, need to open it in game, I guess I'll update it to make it more user-friendly - mark that line more obvious inside the script :)
madster 7 Dec, 2015 @ 2:33pm 
how do you change the damage it takes for the timer to trigger i can't find it any where but it says you can do that in discription
MurderJunkie 1 Dec, 2015 @ 7:53pm 
this should be vanilla
Rikkavidu_GER 3 Nov, 2015 @ 2:50pm 
Hi, Script dont work. Must be a Faction? My Friend grind a Block... nothing. Timerblock Name is "[Security] Zeituhr" without "". I have permissions, my Friend not. When he grind a Block, the Script must activate Weapons... But nothing. Best reguards.
MaverickMartyn 2 Oct, 2015 @ 3:35am 
Ah. Ok then. My mistake. :)
I guess there is no need for it anymore though. :)
LeonserGT  [author] 2 Oct, 2015 @ 1:55am 
Actually, this is an old GUI mod, which one inspired Keens to add changeable opacity in settings. I just never removed it, so it still there for me :]
And I don't remember where I got it...
MaverickMartyn 2 Oct, 2015 @ 1:50am 
That is not a mod. It is in your settings. Change the UI Opacity.
TekCastPork 30 Sep, 2015 @ 6:13pm 
whats that gui mod that makes it clear, been looking for it.
Balbrock 30 Sep, 2015 @ 5:08pm 
nice !
DirtyVegas 30 Sep, 2015 @ 4:33am 
Shit this is some advanced stuff and when i mean advanced i mean like I put 5000 hours into this game advanced.
ContrastX 29 Sep, 2015 @ 3:43pm 
Great job! Just watched the vid. Cant wait to get rocking. :steamhappy:
ContrastX 29 Sep, 2015 @ 3:38pm 
I see you made a video..IM SO WATCHING IT! Thanks for taking the time for this macdaddy program.
Laffyistired 29 Sep, 2015 @ 9:38am 
realy cool how long did take u make that
Shamumu 28 Sep, 2015 @ 3:20pm 
Boy I love this! Its a great idea :)