Page 1 of 1

dialogue system events What is required for this component to run?

Posted: Thu Oct 17, 2024 7:10 am
by hhyu
I tried to copy and paste this component onto another gameobject, but the component inside didn't work. Such as the beginning of the conversation event :?:

Re: dialogue system events What is required for this component to run?

Posted: Thu Oct 17, 2024 9:55 am
by Tony Li
Hi,

The Dialogue System Events component's OnConversationStart() and OnConversationEnd() events only run on the Dialogue Manager GameObject and the active conversation's participants (see Character GameObject Assignments).

For example, say you put a Dialogue System Events component on the player GameObject and configure it to disable the player's movement script. You only want this to happen when the player is involved in a conversation, not when two NPCs are talking separately from the player.

If you need to know when any conversation has started, use the DialogueManager.instance.conversationStarted C# event.