Frictional Games Forum (read-only)
Music during note - 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 during note (/thread-13981.html)

Pages: 1 2


RE: Music during note - Damascus - 03-15-2012

Would you happen to know that specific command? A quick scan of the engine scripts hasn't turned up anything.



RE: Music during note - Your Computer - 03-15-2012

(03-15-2012, 12:55 AM)Damascus Wrote: Would you happen to know that specific command? A quick scan of the engine scripts hasn't turned up anything.

Select the diary in the level editor and under the Entity tab, type in the name of the diary callback.


RE: Music during note - Damascus - 03-15-2012

I put the function "NoteMusic" under the PlayerInteractCallback tab, and then used the following script:

void NoteMusic(string &in asEntity)
{
PlayMusic("01_paper_self", false, 1, 1, 1, true);
}

The music plays, but it doesn't stop when the note is closed. I may leave it as is, though, as the song is fairly short.