Barotrauma

Barotrauma

Not enough ratings
Automated search/turret light sweep assembly
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
24.330 KB
5 May, 2023 @ 3:21pm
8 May, 2023 @ 7:01pm
2 Change Notes ( view )

Subscribe to download
Automated search/turret light sweep assembly

Description
This is an example component for making automated sweeping lights in the submarine editor.

Modify your search light angle limits and clamp the multiplication component with your intended angles to make it sweep (default is horizontal; minimum 179 and maximum 359.

If you'd like it to go faster, you'll have to increase both the turret turn speed limit and the frequency of the oscillator.

It comes with a periscope connected to a text display to help you check what angles are ingame, but is unrelated to the circuit and can be removed. A small battery is attached to help debug it without having to power the sub.

1 Comments
Brashscar 26 Jun, 2023 @ 6:40pm 
might i suggest setting the memory to 720 instead of 360 as using 720 would make it possible to account for the use of negative numbers when you are setting up the turrets
for example i wanted to use this on a turret that was at a 38 degree angle so the angles of the spot light if i wanted it to cover from shell to shell would leave it with angles of -170 to 30
since i changed the memory to use 720 i was able to set the min and max of the component to 190 to 390 and it would actually sweep the entire angle else it would just stop when it was facing straight out the right
i hope i was able to explain that well if not then i hope you were able to get the point im trying to make as i think it would make it easier to use this for things that are not always at a nice 90 or 180 angle