Page 1 of 1
Delay on dialogue node
Posted: Sat Dec 28, 2024 10:18 am
by hrohibil
Hi Tony
How can I create a delay before the dialogue UI starts?
I have a AnimatorPlay set to play a specific animation on the NPC which I want to play BEFORE the dialogue UI/TEXT starts..
Hope it makes sense
Re: Delay on dialogue node
Posted: Sat Dec 28, 2024 10:21 am
by Tony Li
Link <START> to an empty dialogue entry node. Then link that empty dialogue entry node to your first text node.
In the empty dialogue entry node, use a sequence like this:
Code: Select all
SetDialoguePanel(false, immediate);
AnimatorPlayWait(Your Animation)->Message(Done);
required SetDialoguePanel(true)@Message(Done);
Continue()@Message(Done)
The first command will hide the dialogue UI.
The second command will play an animation. You will need to adjust this command for your needs. When it's done, it will send the message "Done" to the sequencer.
The third command waits for the "Done" message and then shows the dialogue UI.
The fourth command continues to the next node.
Re: Delay on dialogue node
Posted: Sat Dec 28, 2024 10:24 am
by hrohibil
Amazing fast response. Can I still use LookAt() and SwitchCamera commands along with this?
Thank you Tony
Re: Delay on dialogue node
Posted: Sat Dec 28, 2024 10:36 am
by hrohibil
Worked!!!
Re: Delay on dialogue node
Posted: Sat Dec 28, 2024 10:47 am
by Tony Li
Great! Glad to help. And, yes, you've probably already found out, but you can use those commands, too.