Space Engineers

Space Engineers

ActionScript (if then else)
6 Comments
ratheden 21 May, 2018 @ 12:16am 
Could we get a few more examples of how to use this properly and well?

example:
i have a sensor that opens a door, i would like this script to turn on an LCD, Play a sound, and Lock a 2nd door or sensor. Then when this door closes, unlock sensor/door 2, stop the sound, turn off the lcd and turn On a set of lights (3).

What more difficult things could i do that you have thought of?



also, getting these errors when installing and checking code:

Program(316,25) Warning: "MyDoor.Open" is obsolete: "Use the status Property instead"
Program(326,24) Warning: "MyDoor.Open" is obsolete: "Use the status Property instead"
Warlocc 13 Apr, 2018 @ 12:57am 
Some obsolete functions in here.
Lord|Monkey  [author] 24 Jul, 2017 @ 11:49pm 
as parameter in the timer block when you add the program block
or
in the custom data in the program block

Command: Control Center Door,2$Soundblock,1;Soundblock,6$Soundblock,0
Boiler 23 Jul, 2017 @ 1:17pm 
Can someone please explain to me where to add the values in to this script. I have a door that is labeled Control Center Door, I want when it opens to play a sound. Then when it closes to stop the sound. Can any please help.
woostyboy 27 Feb, 2017 @ 5:39am 
Great! Exactly what I was after. Limpet mine with landing gear set to 'Autolock'. When it locks on to a passing vessel it can now arm the warheads using this script.
battlestar4312 18 Jul, 2016 @ 3:46pm 
what is this ?