Space Engineers

Space Engineers

81 ratings
Advanced Brake Lights
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
3.900 KB
7 Mar, 2018 @ 6:45pm
1 Feb, 2020 @ 11:37pm
6 Change Notes ( view )

Subscribe to download
Advanced Brake Lights

Description
Functions
Pressing "Space" will turn on all objects with the tag [Brake]
Pressing "S" will turn on all objects with the tag [Reverse] as well as plays the sound block with the [Warning] tag
requires a cockpit, flight seat, or remote control block with the tag [Seat]

All the tags are at the top of the script and can be customized.

Setup
Select the looping sound you want to play on the sound block.
Add the respective tags.
Run the script. may require recompiling if it doesnt work right away.
From the cockpit press S and Space once to get all the blocks set to what it should be.

update: i have added a debug variable so that you can see what all is found. simply change "DEBUG" to true and recompile.
40 Comments
etopsirhc  [author] 19 Feb, 2024 @ 4:57pm 
honestly idk, been so long since i touched it.
kinngrimm 8 Feb, 2024 @ 7:55pm 
does this work with groups?
ninjawizard 7 May, 2022 @ 1:43am 
fantastic script! i love that it work with ships too!
Parker Posey's Mouth 6 Feb, 2022 @ 10:35pm 
Thanks, Hanels!
hanels 28 Jan, 2022 @ 4:58am 
just add [Brake] into block's name and it will work. Unfortunelly it doesnt work with groups :/
Parker Posey's Mouth 28 Jan, 2022 @ 4:49am 
I'm not actually sure how to apply the "tags" to blocks. Apologies for the newbie question, I'm just new to scripting mods. :llama:
etopsirhc  [author] 2 Aug, 2021 @ 3:21am 
try if (cockpit.MoveIndicator.Z < .2f && cockpit.MoveIndicator.Z > -.2f )
hanels 1 Aug, 2021 @ 11:45pm 
So I changed axis for the brakes and > to < so now it has different reaction like reverse, but it still do not work for forward, only backward.. I should learn programming :D

if (cockpit.MoveIndicator.Z < .2f)
etopsirhc  [author] 1 Aug, 2021 @ 4:56pm 
use > 0 or < 0 for that. if Z = 0 then it's not being pressed.
hanels 1 Aug, 2021 @ 2:41pm 
+Y axis is for the Brake (UP) and -Z axis is for reverse (backward). But I dont know how to recognize +Z and -Z