Page 1 of 1

DialogueSystemEvents not sending events

Posted: Mon Jan 30, 2023 4:30 pm
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?

Re: DialogueSystemEvents not sending events

Posted: Mon Jan 30, 2023 6:42 pm
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

Re: DialogueSystemEvents not sending events

Posted: Tue Jan 31, 2023 3:14 am
by giltar
awesome, tx

Re: DialogueSystemEvents not sending events

Posted: Tue Jan 31, 2023 11:06 am
by Tony Li
Glad to help!