Space Engineers

Space Engineers

Ei tarpeeksi arvosteluja
SafeZone Controller
   
Palkinto
Lisää suosikkeihin
Lisätty suosikkeihin
Poista suosikeista
Tunnisteet: other_script
Tiedostokoko
Julkaistu
Päivitetty
955.956 KB
24.4.2021 klo 17.02
28.3.2022 klo 16.26
4 muutosilmoitusta ( näytä )

Tilaa ladataksesi
SafeZone Controller

Kuvaus
Description
Allows Safe Zones to be controlled via actions from Button panels, sensors, etc.

Set Up
1. Add this script to a Programmable Block.
2. Add the following tag to any Safezone block.
[ManagedSafeZone]
3. Recompile the Programmable Block

Use
Use a button panel or other block to send commands to the PB. The following commands can be sent. They each toggle the respective setting on the zone on and off. (Case insensitive)

SHOOT
DAMAGE
WELD
GRIND
BUILD
DRILL
LOCK
CREATE -- enable/disable the Safe Zone field (not block enable/disable)
VOXEL -- enable/disable "voxel hand"
PROJECTION -- enable/disable "build from projection""
CONVERT -- enable/disable "convert to station"

Note
The LCD display in the images is not part of this program. I used Automatic LCDs 2 for that.

Bug Reports
Discord[discord.gg]

Other Scripts You Might Like
15 kommenttia
Dubi23 30.3.2024 klo 5.21 
Was There a Fix for MadmanMAC's issues as I am having the same issue it seems
Patrick  [tekijä] 11.5.2022 klo 17.21 
Use the PropBool command. If you need help, pop on the Discord and I'll see if I can find the exact code.
SultonMRP 11.5.2022 klo 16.47 
how do you setup the ALCD to show safezone info?
Patrick  [tekijä] 20.4.2022 klo 11.20 
Odd. Why don't you jump on the Discord and maybe we can hash it out? Just pop in the #pb-safezone-controller channel.
MadmanMac 20.4.2022 klo 10.12 
MBsz Safe Zone [ManagedSafeZone]

That name should be fine for the script to pick up however im still getting the;

Warning: No Safe Zone found containing tag "[ManagedSafeZone]"


I removed the Special Tag and cleared custom data, so, that is all there is on there atm
MadmanMac 20.4.2022 klo 9.50 
ahh, odd, since i was having an issue n after reading that assumed it was because of mp. Ok, so, i added the [ManagedSafeZone] to the safezones name, recompiled the script and was telling me it could not find the safezone. I am playing on a modded pvp server, also, im using IIM and safezone is using the Special tag from that to keep x amount of zonechips loaded.

PB is on the same grid as the safezone.
Patrick  [tekijä] 20.4.2022 klo 5.44 
@MadmanMac, hey so I wrote my previous response (to another player) mistakenly forgetting that this is a PB script, not a mod. As long as the server permits players to use scripts, I don't see why this wouldn't work.
MadmanMac 20.4.2022 klo 5.36 
sorry, i gotta say that for MP is the main reason i was searching for something like this. ie, a few people using a base and welding up n grinding etc, all well and good, but with the various exploits that can let enemies into a safezone, being able to switch allowing building et all into a complete lockout with (Im assuming commands could be added to a timer block) with basically one click would be very very handy :]

I play on a hardcore modded pvp server and would really love to see an MP version of this script. great idea though n keep up the stella work :steamthumbsup:
Patrick  [tekijä] 10.11.2021 klo 16.20 
Yes, I deliberately wrote it to toggle the shield on and off. That way it works just like all the other commands. As far as MP goes, yes I'm aware. I never intended this to work in MP. It was a simple little thing for SP games. Converting it to work in MP is a pretty heavy lift for something that almost nobody uses :)
Conz 10.11.2021 klo 5.36 
Nice one, thank you. The bad thing is, that it will not work on MP. And there is also a bug in SE, that when you enable it, when it is enabled, it will disable. It always toggles.
I wrote my own little script, and after problems, I asked in keen discord about it.
That's the answer I got:
"Long story short, the logic enabling the safe zone works with the player who enabled the safezone, and how it determines who is that? Who is the Sender of multiplayer event... When player/client clicks that in their terminal, it sends that event to server and everything works fine, but scripts run on server. Event origin is server, in case of dedicated MP the validation fails for nonexistent player, in case of hosted servers it might or might not fail depending on host relation to the safezone block and space master permission."
So maybe disable it for now. There is nothing we can do about it.