Space Engineers

Space Engineers

82 个评价
Advanced Brake Lights
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
3.900 KB
2018 年 3 月 7 日 下午 6:45
2020 年 2 月 1 日 下午 11:37
6 项改动说明 ( 查看 )

订阅以下载
Advanced Brake Lights

描述
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 条留言
etopsirhc  [作者] 2024 年 2 月 19 日 下午 4:57 
honestly idk, been so long since i touched it.
kinngrimm 2024 年 2 月 8 日 下午 7:55 
does this work with groups?
ninjawizard 2022 年 5 月 7 日 上午 1:43 
fantastic script! i love that it work with ships too!
Parker Posey's Mouth 2022 年 2 月 6 日 下午 10:35 
Thanks, Hanels!
hanels 2022 年 1 月 28 日 上午 4:58 
just add [Brake] into block's name and it will work. Unfortunelly it doesnt work with groups :/
Parker Posey's Mouth 2022 年 1 月 28 日 上午 4:49 
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  [作者] 2021 年 8 月 2 日 上午 3:21 
try if (cockpit.MoveIndicator.Z < .2f && cockpit.MoveIndicator.Z > -.2f )
hanels 2021 年 8 月 1 日 下午 11:45 
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  [作者] 2021 年 8 月 1 日 下午 4:56 
use > 0 or < 0 for that. if Z = 0 then it's not being pressed.
hanels 2021 年 8 月 1 日 下午 2:41 
+Y axis is for the Brake (UP) and -Z axis is for reverse (backward). But I dont know how to recognize +Z and -Z