Doubts about the bark.

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Japtor
Posts: 120
Joined: Thu Jun 28, 2018 1:41 pm

Doubts about the bark.

Post by Japtor »

Hi,

I have two questions.

1º Is there a way to maintain active the NPC's bark while the player is inside its trigger?
2º When the player triggers out of it, is there a way to maintain the bark for a specific time before it closes?

Thanks! :)
User avatar
Tony Li
Posts: 22056
Joined: Thu Jul 18, 2013 1:27 pm

Re: Doubts about the bark.

Post by Tony Li »

Try this:

1. Tick the bark UI's Wait Until Sequence Ends checkbox.

2. When the player exits the NPC's trigger area, call this line of code:

Code: Select all

PixelCrushers.DialogueSystem.Sequencer.Message("ExitedTrigger");
3. Set the bark's Sequence to:

Code: Select all

Delay(3)@Message(ExitedTrigger)
This will delay for an extra 3 seconds.
Japtor
Posts: 120
Joined: Thu Jun 28, 2018 1:41 pm

Re: Doubts about the bark.

Post by Japtor »

Hi,

Thanks, it worked!

Have a nice day! :)
Post Reply