Space Engineers

Space Engineers

Docking Action
10 Comments
That One R.O.B. 29 Aug, 2017 @ 10:23am 
This script is very close to something I'm looking for and was wondering if you could make something that would work. I am looking for a script that will open or close doors based on the status of a connector or merge block. Let me know if you can make a script that will work for this please.
ZerothAngel  [author] 27 Feb, 2017 @ 8:58am 
Oh, I misunderstood you. I thought you meant locking/unlocking landing gear based on the state of a connector.

But you mean turning other blocks on/off based on the state of landing gear (instead of a connector).

It may have been possible to read them the same in the past (they both have an "IsLocked" property), but that isn't really supported anymore on connectors (you have to use "Status" instead). So landing gear would need its own special case.
woostyboy 27 Feb, 2017 @ 7:40am 
Wondered if a landing gear lock is the same (in scripting terms) as a connector lock.
woostyboy 27 Feb, 2017 @ 7:39am 
OK thanks. There are other scripts that can create an action based on an event. I'm not a programmer but something like if landing gear lock = true, then arm warhead etc.
ZerothAngel  [author] 27 Feb, 2017 @ 7:26am 
I haven't tried, but probably not. The lock/unlock actions are different from the on/off actions that this script normally sends. Maybe a plain sensor block will work?
woostyboy 27 Feb, 2017 @ 6:44am 
Hey Zero
Do you know if this can be used with landing gear too?
Thanks.
CONS 6 Nov, 2016 @ 10:40am 
ohhh.... tough differently, great thanks!
ZerothAngel  [author] 6 Nov, 2016 @ 8:21am 
And, I think, you can mix them (by using the same connector in the different groups). Some lights turn on when something docks, others turn off...

So it should be quite flexible...
ZerothAngel  [author] 6 Nov, 2016 @ 8:19am 
I don't think I understand your request.

The script can handle "lights turn on when something docks" OR it can do "lights turn off when something docks"

It just depends on what you name the group.
CONS 6 Nov, 2016 @ 1:11am 
Hello zeroth, the script works pretty well, but I think that what almost everybody is looking around, w/o any chance to finding something working is a script that simply light on, some lights when the ship is connected too... Can you just add this option to your script? Should not be so complex since it's the inverse of what your script mostly do.