Do DialogueSystemEvents listen to any conversation?
Posted: Thu Sep 28, 2023 5:23 am
Hello.
Do DialogueSystemEvents component listen and fire the events to any conversation or only the conversation that the gamebject is taking part?
Edit:found this in unity forum. Is it still relevant? What about the Player? I think you could include it the documentation.
Do DialogueSystemEvents component listen and fire the events to any conversation or only the conversation that the gamebject is taking part?
Edit:found this in unity forum. Is it still relevant? What about the Player? I think you could include it the documentation.
The Dialogue Manager GameObject receives all "On Conversation End" events. An NPC will only receive the "On Conversation End" event if it is involved in the conversation.
If you add a Dialogue System Events component to the NPC (not the Dialogue Manager), its OnConversationEnd() event will only run when that particular NPC's conversation has ended.
The same is true for a Dialogue System Trigger component set to OnConversationEnd, or a script with an OnConversationEnd(Transform) method.