Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @name Explosion Sounds
- @inputs Boom
- @persist Players:array
- runOnTick(1)
- Players = players()
- for (I=1,Players:count()) {
- if (changed(Boom)&Boom) {
- Players[I,entity]:soundPlay(I,0,"ambient/halloween/thunder_06.wav")
- Players[I,entity]:soundPlay((Players:count()+I),0,"ambient/halloween/mysterious_perc_02.wav")
- timer("stop",8000)
- }
- if (clk("stop")) {
- for (F=1,(Players:count()*2)) {
- soundStop(F)
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement