Jump to content

Question in setWorldSoundEnabled


#Just_Me

Recommended Posts

Posted

hello guys, how can i make the sound of the reloading not turned off when i use this function

setWorldSoundEnabled ?

cause i've noticed that there is a sounds are turned off some of them turned off

when using the sound id 5 which is for weapons group

but when i use it the punch sound turned off

and the reloading sound turned off .. etc

so how can i make it only for the weapons,

without the reloading sound and the punch sound .. etc, with them ?

Posted

2 distinct solutions:

1) disable every sound you want removed, one by one, instead of the whole group; or

2) disable the whole group and re-enable certain sounds such as weapon reload sounds.

Posted

bool setWorldSoundEnabled( int group, [ int index = -1, ] bool enable )
If index is not specified, it assumes it's -1, and -1 means 'all of the group.' If you want to block a specific sound, use development mode function to find the exact sound group and index, and just disable it using the above function.

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...