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

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
hhyu
Posts: 11
Joined: Fri Jul 05, 2024 9:31 am

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

Post 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 :?:
User avatar
Tony Li
Posts: 22049
Joined: Thu Jul 18, 2013 1:27 pm

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

Post 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.
Post Reply