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
Music stops too soon
zombiehacker595 Offline
Member

Posts: 141
Threads: 51
Joined: Mar 2012
Reputation: 3
#1
Music stops too soon

so this is my music script and it only lasts for like 15 seconds and i thought the 450.0f was seconds so im confused how to get it to gor for longer? thanks Smile

PlayMusic("10_amb.ogg", false, 3, 3, 3, false);
AddTimer("stop", 450.0f, "Stop");
}

void Stop(string &in asTimer)
{
StopMusic(2.0f, 1);
}
04-30-2012, 07:07 AM
Find
jens Offline
Frictional Games

Posts: 4,093
Threads: 199
Joined: Apr 2006
Reputation: 202
#2
RE: Music stops too soon

The track is only about 15 seconds long, so it ends as the track ends. If you want it to continue you have to loop the track, which you do by setting the first false to true instead.

04-30-2012, 07:19 AM
Website Find
zombiehacker595 Offline
Member

Posts: 141
Threads: 51
Joined: Mar 2012
Reputation: 3
#3
RE: Music stops too soon

(04-30-2012, 07:19 AM)jens Wrote: The track is only about 15 seconds long, so it ends as the track ends. If you want it to continue you have to loop the track, which you do by setting the first false to true instead.


Thanks Smile
04-30-2012, 07:31 AM
Find
SilentStriker Offline
Posting Freak

Posts: 950
Threads: 26
Joined: Jul 2011
Reputation: 43
#4
RE: Music stops too soon

Or I think place it inside the map? I believe ambiance sounds loops when they are placed within a map Smile

04-30-2012, 04:48 PM
Find




Users browsing this thread: 1 Guest(s)