Page 1 of 1

Doubts about the bark.

Posted: Fri Feb 01, 2019 7:04 am
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! :)

Re: Doubts about the bark.

Posted: Fri Feb 01, 2019 9:55 am
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.

Re: Doubts about the bark.

Posted: Fri Feb 01, 2019 11:23 am
by Japtor
Hi,

Thanks, it worked!

Have a nice day! :)