Stormworks: Build and Rescue

Stormworks: Build and Rescue

평점이 부족합니다.
TomDRV's resizable Dial
   
어워드
즐겨찾기
즐겨찾기됨
즐겨찾기 해제
태그: v1.7.11
파일 크기
게시일
업데이트일
83.018 KB
2023년 6월 12일 오전 6시 40분
2023년 6월 14일 오전 7시 42분
업데이트 노트 10개 (보기)

다운로드 위해 구독하기
TomDRV's resizable Dial

설명
A basic dial function which allows the creation of a variety of dials. Barebones so you can add it into any setup you like.

This is a vehicle file, a demo rig with a screen and throttles hooked up to the function so you can play about with it, decide on your parameters, then copy them into your creation

This function is: dial(x,y,r,c,o,d,l,h,m,v) where:

x = x position
y = y position
r = radius
c = circumference (can be set to anywhere between a whole circle, a semi circle, an arc . . . all the way down to nothing)
o = orientation (the whole dial can be rotated 360 degrees)
d= true of false, if true, the dial will invert itself horizontally and measure anti-clockwise
l = low margin (% of the max reading where the green band will start)
h = high margin (% of the max reading where the red band will start)
m = max possible reading)
v = input value (source from the thing you're measuring.)

Due to the way Stormworks draws things, sometimes the dial can be slightly asymmetrical by 1-2 pixels. Tuning the size, position, or circumference by a tiny amount (0.01-1) fixes it. Stormworks rounds the throttle inputs to the nearest 0,01 (so use that once you've decided on your parameters and type them into your script)

Colours can be changed within the function, the lines are clearly annotated.

Permissions
- please feel free to use this on any creation without asking!, just please credit appropriately if you upload it to the workshop.