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


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
HOW TO PLAY MUSIC??? ANOTHER ISSUE >:(
Roenlond Offline
Senior Member

Posts: 331
Threads: 3
Joined: Apr 2011
Reputation: 0
#6
RE: How to play music???

(05-01-2011, 03:46 PM)HumiliatioN Wrote:
(05-01-2011, 01:41 PM)Roenlond Wrote:
(05-01-2011, 01:12 PM)HumiliatioN Wrote:
(05-01-2011, 12:30 PM)Ongka Wrote: void OnEnter()
{
PlayMusic("17_amb.ogg", true, 1.0f, 0, 0, true); //17_amb.ogg is the name of the music file
}

How to stop looping music with this script?

void KillLights2(string &in asParent, string &in asChild, int alState)
{
SetLampLit("candlestick_wall_orange_1", true, true);
SetLampLit("candlestick_wall_orange_2", true, true);
SetLampLit("candlestick_floor_2", true, true);
SetLampLit("candlestick02_2", true, true);
SetLampLit("candlestick02_3", true, true);
SetLampLit("candle_floor_4", true, true);
GiveSanityDamage(20, true);
THIS -> PlayMusic("20_puzzle.ogg", true, 1.0f, 0, 0, true);

}


PlayMusic("20_puzzle.ogg", true, 1.0f, 0, 0, true);

Change the bold part to false if you don't want it to loop.

Fantastic it works, thanks!

You're welcome Smile Be sure to visit http://wiki.frictionalgames.com/hpl2/amn..._functions for more help if you need it! Function descriptions there are priceless.
05-01-2011, 04:16 PM
Find


Messages In This Thread
RE: How to play music??? - by Ongka - 05-01-2011, 12:30 PM
RE: How to play music??? - by HumiliatioN - 05-01-2011, 01:12 PM
RE: How to play music??? - by Roenlond - 05-01-2011, 01:41 PM
RE: How to play music??? - by HumiliatioN - 05-01-2011, 03:46 PM
RE: How to play music??? - by Roenlond - 05-01-2011, 04:16 PM
RE: How to play music??? - by waqas12346 - 05-01-2011, 05:02 PM
RE: How to play music??? - by Roenlond - 05-01-2011, 05:19 PM



Users browsing this thread: 1 Guest(s)