Space Engineers

Space Engineers

Docking Action
10 条留言
That One R.O.B. 2017 年 8 月 29 日 上午 10:23 
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  [作者] 2017 年 2 月 27 日 上午 8:58 
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 2017 年 2 月 27 日 上午 7:40 
Wondered if a landing gear lock is the same (in scripting terms) as a connector lock.
woostyboy 2017 年 2 月 27 日 上午 7:39 
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  [作者] 2017 年 2 月 27 日 上午 7:26 
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 2017 年 2 月 27 日 上午 6:44 
Hey Zero
Do you know if this can be used with landing gear too?
Thanks.
CONS 2016 年 11 月 6 日 上午 10:40 
ohhh.... tough differently, great thanks!
ZerothAngel  [作者] 2016 年 11 月 6 日 上午 8:21 
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  [作者] 2016 年 11 月 6 日 上午 8:19 
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 2016 年 11 月 6 日 上午 1:11 
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.