Silveredge9 Posted October 24, 2006 Share Posted October 24, 2006 How would I script a sound to play? The method below that I've tried doesn't seem to work. (I'm working on KOTOR1) object oSound = GetObjectByTag("NAMEOFSOUND"); SoundObjectPlay(oSound); Thanks for any help on this in advance. Link to comment Share on other sites More sharing options...
Tupac Amaru Posted October 24, 2006 Share Posted October 24, 2006 The script is correct. You have to make a sound object first. Look in the _s.rim->Blueprint, Sound module files for some examples. Then you need to specify the position of the sound object in the .git file under SoundList. Most sound object have a cutoff distance. When playing them with a script, don't be too far away from its centre or you won't hear. A simpler method is to use the PlaySound(string sSoundName) command, where sSoundName is the name of the .wav in StreamSounds, but you can't freely position the sound that way. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.