Recent changes Random page
GAMING
Gaming
 
WoWWiki
Halopedia
FFXIclopedia
Age of Conan
Warhammer Online
Grand Theft Wiki
See more...

Creating BMU files

From NWNWiki

Jump to: navigation, search

This is a greate tutorial]

Also note that the function PlaySound() will not work on triggers. To use it in this way: AssignCommand() to the PlaySound() function to the PC or other object.

Do not confuse a sound file with a sound object. A Sound Object is a group of sounds, such as the one you place down in the Toolset.

[edit] Example

Animal Cries Day, is a sound object. You would use SoundObjectPlay( object) to play the entire object.

  • To place the sound, mute it and then later, when needed:
    • use SoundObjectPlay( GetObjectByTag( "Animal Cries Day")) to make it play
    • and SoundObjectStop(object) to make it stop.

To play a single sound from that sound object you need the ResRef. Looking at the properties of Animal Cries Day, we have a list of sounds.

  • as_an_cryday1
  • as_an_cryday2
  • as_an_cryday3
  • as_an_cryday4

To simply play as_an_cryday1 alone, you would use PlaySound( "as_an_cryday1");

Rate this article:
Share this article: