OnEnter Music Start Playing 'I know stupid question xD' - 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: OnEnter Music Start Playing 'I know stupid question xD' (/thread-20825.html) |
OnEnter Music Start Playing 'I know stupid question xD' - VeNoMzTeamHysterical - 03-19-2013 Well its very strange but i forget how to let it play music xD Even when i did it on my first custom story that was not even serious but just practicing. If anyone could explain how to i would appreciate it RE: OnEnter Music Start Playing 'I know stupid question xD' - Unearthlybrutal - 03-19-2013 Here. void PlayMusic(string& asMusicFile, bool abLoop, float afVolume, float afFadeTime, int alPrio, bool abResume); Plays music. asMusicFile - the music to play + extension .ogg abLoop - determines whether a music track should loop afVolume - volume of the music afFadeTime - time in seconds until music reaches full volume alPrio - priority of the music. Note that only the music with the highest priority can be heard! 0 - lowest, 1 - higher, etc. abResume - if true, playback will be continued from where the track stopped after the call to StopMusic(); if false, the track will be restarted. RE: OnEnter Music Start Playing 'I know stupid question xD' - VeNoMzTeamHysterical - 03-19-2013 (03-19-2013, 04:44 PM)Unearthlybrutal Wrote: Here.But what should the Entity be just an AddEntityCallback? RE: OnEnter Music Start Playing 'I know stupid question xD' - Unearthlybrutal - 03-19-2013 void OnStart() { PlayMusic("name of the song .ogg", true, 1, 1, 1, true); } RE: OnEnter Music Start Playing 'I know stupid question xD' - VeNoMzTeamHysterical - 03-19-2013 (03-19-2013, 04:56 PM)Unearthlybrutal Wrote: void OnStart() Thanks now i understand RE: OnEnter Music Start Playing 'I know stupid question xD' - Unearthlybrutal - 03-19-2013 No problem |