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
Ambiencemusic help!
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#2
RE: Ambiencemusic help!

Just go into the level editor and click the sound icon on the side. Then load a ambiance sound and place it anywhere on the map. You might have to change the radius on it. Or you can go into the script and add

void OnStart()
{
PlayMusic(string& asMusicFile, bool abLoop, float afVolume, float afFadeTime, int alPrio, bool abResume);
}

asMusicFile - the music to play + extension .ogg
abLoop - determines whether a music track should loop
afVolume - volume of the music
afFadeTime - time in seconds until music reaches full volume
alPrio - priority of the music. Note that only the music with the highest priority can be heard! 0 - highest, 1 - lower, etc

01-19-2012, 11:22 AM
Find


Messages In This Thread
Ambiencemusic help! - by rallelol - 01-19-2012, 10:54 AM
RE: Ambiencemusic help! - by flamez3 - 01-19-2012, 11:22 AM
RE: Ambiencemusic help! - by rallelol - 01-19-2012, 06:30 PM



Users browsing this thread: 1 Guest(s)