Hi, I need some advice for my Team Fortress 2 map.
I have 2 ondamage brush-based button entities on my map. Button1 plays sound1, and button2 plays sound2. Currently if you activate button2 whilst sound1 is playing, it stops sound1 and plays sound2.
However, I have a problem. This means that if you shoot button1 and button2 in rapid succession, you can rapidly change the sounds. What I want to do is make it so that if you activate button1, sound1 will play but also add a delay so that button2 cannot be activated for a certain period of time, and vice versa. However, I am unable to work out how to do this. Can somebody offer me some advice?
Any help would be appreciated.
I have 2 ondamage brush-based button entities on my map. Button1 plays sound1, and button2 plays sound2. Currently if you activate button2 whilst sound1 is playing, it stops sound1 and plays sound2.
However, I have a problem. This means that if you shoot button1 and button2 in rapid succession, you can rapidly change the sounds. What I want to do is make it so that if you activate button1, sound1 will play but also add a delay so that button2 cannot be activated for a certain period of time, and vice versa. However, I am unable to work out how to do this. Can somebody offer me some advice?
Any help would be appreciated.