Hello
How can I start a timeline sequence after i finish a conversation?
-Pepe
How to start timeline sequence after conversation has ended
Re: How to start timeline sequence after conversation has ended
Hi Pepe,
You can start it at the end of the final dialogue entry node. Use the Timeline() sequencer command with the nowait and nostop keywords. For example, to play the timeline on the GameObject "MyTimelineObj", use:
If you require the player to click a continue button, use this Sequence:
If you don't require continue button clicks, use a Sequence like:
Alternatively, you can add another Dialogue System Trigger component to either conversation participant's GameObject. Set it to OnConversationEnd. Then select Add Action > Play Sequence and enter the first sequence above, or select Add Action > OnExecute() UnityEvent and configure the UnityEvent to start the timeline.
You can start it at the end of the final dialogue entry node. Use the Timeline() sequencer command with the nowait and nostop keywords. For example, to play the timeline on the GameObject "MyTimelineObj", use:
Code: Select all
Timeline(play, MyTimelineObj, nowait, nostop)
Code: Select all
required Timeline(play, MyTimelineObj, nowait, nostop)@Message(Continue)
Code: Select all
Timeline(play, MyTimelineObj, nowait, nostop)@{{end}}