Xwad Posted August 12, 2015 Posted August 12, 2015 To disable the original tank shooting sounds need i use SetWorldSoundEnabled function? Thanks.
Xwad Posted August 12, 2015 Author Posted August 12, 2015 yeah its working with the example but for hand weapons and i want to mute the rhinos shooting sound.. I thing the number 5 is for the hand weapons. Is there a list for that numbers?
GTX Posted August 13, 2015 Posted August 13, 2015 https://wiki.multitheftauto.com/wiki/Set ... undEnabled Note: The values for group and index can be determined by using the client command showsound in conjunction with setDevelopmentMode
Xwad Posted August 15, 2015 Author Posted August 15, 2015 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
Moderators IIYAMA Posted August 15, 2015 Moderators Posted August 15, 2015 afaik, weapon sounds aren't the same as the tank sound or am I incorrect? Try to find the correct sounds using: /debugscript 3 /start runcode /crun setDevelopmentMode ( true) /showsound 1 Shoot the tank cannon.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now