DialogueSystemEvents not sending events

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
giltar
Posts: 16
Joined: Thu Jan 21, 2021 2:24 am

DialogueSystemEvents not sending events

Post by giltar »

Hi,

I used to use this simple code on my player:

Code: Select all

        
        private void OnDialogue(bool isInDialogue)
        {
            canMove = !isInDialogue;
        }
It is some very old code I found somewhere but cant find out where anymore. Anyway it does not get called. So I tried another approach:
There is a DialogueSystemEvents component on the player also that should run on Conversation start and end (). Again calling simple methods to disable the movement. But those methods do not get called.

It used to work but now doesnt. I have no idea why, could you please help?
User avatar
Tony Li
Posts: 21925
Joined: Thu Jul 18, 2013 1:27 pm

Re: DialogueSystemEvents not sending events

Post by Tony Li »

Hi,

Make sure your player GameObject is being used as the conversation actor or conversant.

The Dialogue Manager GameObject and the conversation's actor and conversant receive OnConversationStart and OnConversationEnd events. This table shows which GameObjects receive which events: Script Messages

See also: Character GameObject Assignments
giltar
Posts: 16
Joined: Thu Jan 21, 2021 2:24 am

Re: DialogueSystemEvents not sending events

Post by giltar »

awesome, tx
User avatar
Tony Li
Posts: 21925
Joined: Thu Jul 18, 2013 1:27 pm

Re: DialogueSystemEvents not sending events

Post by Tony Li »

Glad to help!
Post Reply