Jump to content

original tank sounds


Xwad

Recommended Posts

i made it but its not working.. I want to mute the tank shooting sound and add a new shooting sound

  
--tank shooting sounds 
local sound 
function shootingSound() 
if (getElementModel(source) == 601) then 
setWorldSoundEnabled ( 5, true )  
sound = playSound("sounds/sound3.mp3") 
setSoundVolume(sound, 1) 
else  
cancelEvent() 
end 
end 
  
function bindTheKeys () 
  bindKey ( "mouse1", "down", shootingSound )   
end 
  

Link to comment
  • Moderators

afaik, weapon sounds aren't the same as the tank sound or am I incorrect?

Try to find the correct sounds using:

  1. /debugscript 3
  2. /start runcode
  3. /crun setDevelopmentMode ( true)
  4. /showsound 1
  5. Shoot the tank cannon.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...