Frictional Games Forum (read-only)
Music stops too soon - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: Music stops too soon (/thread-15186.html)



Music stops too soon - zombiehacker595 - 04-30-2012

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);
}



RE: Music stops too soon - jens - 04-30-2012

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.




RE: Music stops too soon - zombiehacker595 - 04-30-2012

(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


RE: Music stops too soon - SilentStriker - 04-30-2012

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