RE: FATAL ERROR: Could not load script file
If you really want help from HIM, okey, but I can give it a try too.
If you want a sound to Appear if you do something, like Breaking a debris, handle, door breaking etc, use
PlayGuiSound(string& asSoundFile, float afVolume);
Let's say you want to use Wood_Explosion.snt (Idk if that does excist haha)
Then you need to do this:
PlayGuiSound("Wood_Explosion.SNT", 1);
The "1" is the volume.
If you want to use a sound ON an entity, like on a door, barrel, book idk.
use this :
PlaySoundAtEntity(string& asSoundName, string& asSoundFile, string& asEntity, float afFadeTime, bool abSaveSound);
Soundname is something you can call whatever you want, the soundfile is the soundfile you want to play, like Unlock_Door String& asEntity is on what entity you want the sound play on, and fade time is the fade time etc, and the last one is just to remember the playback state if you re-enter the map.
If you want to stop a sound:
StopSound(string& asSoundName, float afFadeTime);
BUT be advised, Instead of putting the Sound file in the "soundName"
You have to put your internal sound name, SO this part ;string& asSoundName of this :
PlaySoundAtEntity(string& asSoundName, string& asSoundFile, string& asEntity, float afFadeTime, bool abSaveSound);
Sorry for my bad English, hopefully you will Atleast understand haha
|