Frictional Games Forum (read-only)

Full Version: Diaries don't open the journal
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have a small problem considering diaries.

I know that I need to add a callback in the level editor. I used PickDiary like in the files from the real game:
Game file:
Spoiler below!
// Player picks diary page, start guardian event
void PickDiary(string &in asItem, int alEntryIdx)
{
AddDebugMessage("Picked diary page", false);
PlayMusic("28_paper_daniel01.ogg", false, 0.4f, 0.5f, 10, false);

//DISABLED HERE, AFTER FIRST ALTAR INSTEAD AND NOT THE MAIN LARGE DOOR, THE SMALL ENTRANCE INSTEAD
//AddTimer("TimerGuardianRoar", 2.0f, "TimerGuardianRoar");
}
My script:
Spoiler below!
//Diaries
void PickDiary(string &in asItem, int alEntryIdx)
{
PlayMusic("22_paper_daniel01.ogg", false, 1.0f, 4.0f, 3, true);
}


They show up in the journal if I manually access them. But I want to let them automatically open like in the game and with notes. I tried the ReturnOpenJournal(true); but that didn't work.

Help is appreciated Smile
Are you using the same settings in the entity tab?

[Image: 10nxg5e.jpg]
I am, this is what is in it:
[Image: diary.jpg]