Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help FATAL ERROR: Could not load script file
Amnesiaplayer Offline
Senior Member

Posts: 539
Threads: 105
Joined: Jun 2014
Reputation: 0
#14
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
10-08-2015, 06:57 PM
Find


Messages In This Thread
RE: FATAL ERROR: Could not load script file - by Amnesiaplayer - 10-08-2015, 06:57 PM



Users browsing this thread: 7 Guest(s)