Don't moove before the dialogue

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
ludo2vie
Posts: 6
Joined: Mon Jul 05, 2021 6:54 am

Don't moove before the dialogue

Post by ludo2vie »

Hello all,

I can't solve my problem.
I have a dialogue with "On trigger enter", and the texts are read with "GetMouseButtonDown(0)". Everything work perfectly.

I would like that when the dialog starts, we have to read ALL of the texts before moving.
This means that the character not to be able to move until the dialogue is finished.
I have tried several methods without success.
Thank you for your help.
Excuse my english ;)
User avatar
Tony Li
Posts: 21987
Joined: Thu Jul 18, 2013 1:27 pm

Re: Don't moove before the dialogue

Post by Tony Li »

Hello,

Add a Dialogue System Events component to the player. Configure the OnConversationStart() event to disable the player's movement scripts. Configure OnConversationEnd() to re-enable them.

For more details, see the second half of the Interaction Tutorial.
ludo2vie
Posts: 6
Joined: Mon Jul 05, 2021 6:54 am

Re: Don't moove before the dialogue

Post by ludo2vie »

Thanks for your answer, I'll try that.
Post Reply