Frictional Games Forum (read-only)
Need help - 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: Need help (/thread-20110.html)



Need help - afroduckie - 01-31-2013

Okay, I used this script to add a caption and narration, like when Alexander is speaking to you,

{
AddEffectVoice("voice01", "", "Voice", "invoice", false, "intro_note", 0, 0);

}

It worked, but I wanted the narration and caption to play after the note.
Should I use an interaction callback or something else? Any solutions?


RE: Need help - FlawlessHappiness - 01-31-2013

Yes, an interact callback.

What you do is, that you go into the properties of the note.
There should be a box you can write in, called something with "interact" or "interaction" (I don't fully remember)

In this box you write the function you want to be called.
Let's say it is "InteractNoteVoice"

Then in your script you write the same function, so the game knows that if you interact with the note, THAT is the function it's gonna call. Like this:

void InteractNoteVoice(string &in asEntity) <-- If you don't understand what these are, then try check this link: http://www.frictionalgames.com/forum/thread-18368.html

So the full function should look like this:

void IntertactNoteVoice(string &in asEntity)
{
AddEffectVoice("voice01", "", "Voice", "invoice", false, "intro_note", 0, 0);

}

Remember to put the function in the properties of the note too, in the level editor.