Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Shelf | Store

Privacy Policy


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Music stops too soon
Author Message
zombiehacker595 Offline
Member

Posts: 141
Joined: Mar 2012
Reputation: 3
Post: #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 all posts by this user Quote this message in a reply
jens Offline
Frictional Games

Posts: 3,107
Joined: Apr 2006
Reputation: 103
Post: #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
Visit this user's website Find all posts by this user Quote this message in a reply
zombiehacker595 Offline
Member

Posts: 141
Joined: Mar 2012
Reputation: 3
Post: #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 all posts by this user Quote this message in a reply
SilentStriker Offline
Posting Freak

Posts: 939
Joined: Jul 2011
Reputation: 39
Post: #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 all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)