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?
oscar1007 Offline
Member

Posts: 64
Threads: 24
Joined: Oct 2011
Reputation: 0
#3
RE: How do i play music on a level?

(10-03-2011, 09:31 AM)Tanshaydar Wrote: 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
I'm kind of new to scripting just so you know. so where do i insert: "void PlayMusic(string& asMusicFile, bool abLoop, float afVolume, float afFadeTime, int alPrio, bool abResume);"
?
If you could display an example of this script that would be great!
Sorry to bother you guys with these "noob" problems. like i said before. Im new to this.

Thanks again!

Money can't buy you happiness. But I rather cry in my ferrari.

PROJECT:
http://www.moddb.com/mods/oscar1007
10-03-2011, 09:36 AM
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 oscar1007 - 10-03-2011, 09:36 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)