#Decreasing a number smoothly
1 messages · Page 1 of 1 (latest)
It really depends on net because if you make it smoothly turn down the volume it could be taking a lot of net
Assuming its local, Time Get Precise Seconds and Float Variable
When you want to start the fade, set the Float Variable to Time Get Precise Seconds
Time Get Precise Seconds - Float Variable = The amount of time that has passed since the variable was set
You can divide this time by X to have it take X seconds to reach 1, so if you wanted to make it take 6 second to fade in, you would do (Time Get Precise Seconds - Float Variable) / 6
You would still need to constantly update the volume in order for this to work though, easiest done with 30hz, better sounding with 60hz
Divide the float variable by 1.1 and then set it to the output
Thank you all!