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
How do i play music on a level?
Tanshaydar Offline
From Beyond

Posts: 3,085
Threads: 17
Joined: Mar 2009
Reputation: 67
#2
RE: How do i play music on a level?

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

Plays music.

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

Simply:
PlayMusic("some_music", true or false, any float number, any float number, priority number higher is prior, true or false);

For this and more: http://wiki.frictionalgames.com/hpl2/amn..._functions

10-03-2011, 09:31 AM
Website Find


Messages In This Thread
How do i play music on a level? - by oscar1007 - 10-03-2011, 09:28 AM
RE: How do i play music on a level? - by Tanshaydar - 10-03-2011, 09:31 AM
RE: How do i play music on a level? - by ZyLogicX - 10-03-2011, 06:58 PM



Users browsing this thread: 1 Guest(s)