Frictional Games Forum (read-only)

Full Version: Music during note
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Would you happen to know that specific command? A quick scan of the engine scripts hasn't turned up anything.
(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.
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.
Pages: 1 2