Space Engineers

Space Engineers

82 ratings
Advanced Brake Lights
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
3.900 KB
Mar 7, 2018 @ 6:45pm
Feb 1, 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] Feb 19, 2024 @ 4:57pm 
honestly idk, been so long since i touched it.
kinngrimm Feb 8, 2024 @ 7:55pm 
does this work with groups?
ninjawizard May 7, 2022 @ 1:43am 
fantastic script! i love that it work with ships too!
Parker Posey's Mouth Feb 6, 2022 @ 10:35pm 
Thanks, Hanels!
hanels Jan 28, 2022 @ 4:58am 
just add [Brake] into block's name and it will work. Unfortunelly it doesnt work with groups :/
Parker Posey's Mouth Jan 28, 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] Aug 2, 2021 @ 3:21am 
try if (cockpit.MoveIndicator.Z < .2f && cockpit.MoveIndicator.Z > -.2f )
hanels Aug 1, 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] Aug 1, 2021 @ 4:56pm 
use > 0 or < 0 for that. if Z = 0 then it's not being pressed.
hanels Aug 1, 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