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 >:(
HumiliatioN Offline
Posting Freak

Posts: 1,179
Threads: 64
Joined: Dec 2010
Reputation: 18
#5
RE: How to play music???

(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!

“Life is a game, play it”
05-01-2011, 03:46 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: 2 Guest(s)