Stormworks: Build and Rescue

Stormworks: Build and Rescue

66 个评价
LUA Sonar Display
3
2
   
奖励
收藏
已收藏
取消收藏
Vehicles: Sea
标签: v1.5.1
文件大小
发表于
205.492 KB
2022 年 6 月 5 日 上午 5:46
1 项改动说明 ( 查看 )

订阅以下载
LUA Sonar Display

描述
Lua display for the new sonar, with the ability to display both passive and active targets

- Rangefinds active targets, displays bearing of passive targets
- Filters out deadzone noise
- Ping frequency based on distance setting
- Works on all monitor sizes (though 2x2 or above is recommended)

Setup:
- Place the sonar with the straight arrow on top and facing forwards, and the positive directional arrow facing clockwise
- Connect nodes as stated by their name
- Configure the properties of the microcontroller to your preferences

Notes:
- Due to a bug with sonar atm, targets that are passively detected cannot be detected by active sonar
- While moving, rangefinding for active sonar may become inaccurate depending on your own vehicle's speed and distance to the target
-You may notice passive targets highlighted when there are seemingly no vehicles around; this is likely due to your vehicle's own noise and is known as 'baffles'

Please give credit if you use this in a build!
47 条留言
Maia  [作者] 5 月 11 日 下午 1:21 
tysm
Just Kenji 5 月 11 日 下午 1:19 
thats true lol, thanks great controller btw
Maia  [作者] 5 月 11 日 下午 1:12 
metres; you wont be needing anywhere near the maximum range of any sonars
Just Kenji 5 月 11 日 下午 1:03 
yes but whats 5000? im assuming meters but even the smallest sonar in the game, already has a range of 60000 Meters. with my large sonar having 200000
Maia  [作者] 5 月 11 日 下午 12:47 
I'm pretty sure you can adjust the maximum range in the properties?
Just Kenji 5 月 11 日 下午 12:31 
i use the largest sonar available, but what do u mean with "5000", my sonar has a range of 200KM and i wanna use every single meter
Maia  [作者] 3 月 22 日 上午 6:27 
Did you place the sonar in the correct orientation?
The L.A. rose 3 月 21 日 下午 8:33 
Uh... the entire display is reversed I think?
Virginia 2024 年 12 月 21 日 上午 6:16 
i tried it but just replacing didn’t work,
Maia  [作者] 2024 年 12 月 12 日 上午 11:50 
tbh i'm working off of the same information as you since i've entirely forgotten how this controller works; the lua script(s) use the property.getNumber method to obtain the value from the max distance property, so to connect a keypad you'd need to write the value into the script(s) that use that property, and replace the property.getNumber with an input.getNumber. Might be difficult as i believe the code is minified