Page 1 of 1

Don't moove before the dialogue

Posted: Mon Jul 05, 2021 7:20 am
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 ;)

Re: Don't moove before the dialogue

Posted: Mon Jul 05, 2021 1:07 pm
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.

Re: Don't moove before the dialogue

Posted: Mon Jul 05, 2021 1:29 pm
by ludo2vie
Thanks for your answer, I'll try that.