Talk:TF2/Creating Audio Playing Buttons

From Valve Developer Community
Jump to: navigation, search

I've tested this on a test map, and the only real bug I found was with func_button's "Toggle" flag. After turning the sound on by shooting the button, I shot the button again and the sound went off.

So I shot the button a 3rd time....nothing happened.

If anyone knows the solution to the problem, feel free to edit it into the article. Daedryon 03:54, 21 December 2009 (UTC)

Nevermind, I figured it out (I think). I set the Delay before reset of the func_button to -1. Seems to work now. Daedryon 04:28, 21 December 2009 (UTC)