Advertisement
Daemonion

procedural fade

May 5th, 2012
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. Found these two functions in lua_help.script.
  2.  
  3. function set_snd_volume(number);
  4. function get_snd_volume();
  5.  
  6. Maybe something like:
  7.  
  8. new function fade_out
  9. get sound volume
  10. if sound volume != 0
  11. set snd volume (-1)
  12. wait 5 milliseconds
  13. get sound volume
  14. if snd volume = 0
  15. stop
  16. else repeat
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement