Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need help
afroduckie Offline
Junior Member

Posts: 35
Threads: 12
Joined: Jan 2013
Reputation: 0
#1
Need help

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?
01-31-2013, 12:01 AM
Find Reply
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#2
RE: Need help

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.

Trying is the first step to success.
01-31-2013, 06:59 AM
Find Reply




Users browsing this thread: 1 Guest(s)