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
can you import your own music, so i can play my own music in game?
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#2
RE: can you import your own music, so i can play my own music in game?

You would need to convert it to a .ogg file. Then just use this function script in void OnStart() of your .hps file

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



Taken from http://wiki.frictionalgames.com/hpl2/amn...ons#player

(This post was last modified: 01-31-2012, 01:13 PM by flamez3.)
01-31-2012, 01:13 PM
Find


Messages In This Thread
RE: can you import your own music, so i can play my own music in game? - by flamez3 - 01-31-2012, 01:13 PM



Users browsing this thread: 1 Guest(s)