Jump to content

Dynamic sound effect/changing sound mid scene


Recommended Posts

Posted

This is probably a long shot, but are there any mods that change the sounds played mid scene? For example, funnybizness has an animation called snuff cowgirl or something like that, and about halfway through the girl in question dies (at least in the animation), but her struggle sounds keep playing. Anything to fix that?

Posted

As far as I can remember, no mod does this. I've however done something similar myself. If you know how to script, here's something to get you started:

 

Function ToggleMuteActors(sslThreadController thread, bool creatures, bool mute)
    Actor[] actors = thread.Positions
    int id = 0
    
    While id < actors.Length
        Actor this = actors[id]
        
        If (!IsCreature(this) || creatures)
            sslActorAlias thisAlias = thread.ActorAlias(this)
            ; NOTE None does not change the voice. 2nd argument is ForceSilence.
            thisAlias.SetVoice(none, mute)
        EndIf
        
        id += 1
    EndWhile
EndFunction

 

  • 2 years later...

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