Frictional Games Forum (read-only)

Full Version: Music stops too soon
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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);
}
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)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
Or I think place it inside the map? I believe ambiance sounds loops when they are placed within a map Smile