OnConversationEnd triggered twice

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Syoka
Posts: 11
Joined: Sun Apr 21, 2024 1:38 pm

OnConversationEnd triggered twice

Post by Syoka »

Hi.
The OnConversationEnd of player actor triggers twice whenever conversation ends.
I only want the event to trigger once whenever conversation ends.
I checked the error code(caused by the second trigger) and found that this may be caused by the following.
Can I change any setting to avoid the duplicate of conversation end event?

One more small thing I would like to ask, does player actor conversation events triggered by any conversations, included conversation not involved player actor?
Attachments
deplicateEndEvent.png
deplicateEndEvent.png (219.5 KiB) Viewed 401 times
User avatar
Tony Li
Posts: 22108
Joined: Thu Jul 18, 2013 1:27 pm

Re: OnConversationEnd triggered twice

Post by Tony Li »

Hi,

Are you using the current version of the Dialogue System?

I think something else might be going on there. It will only send OnConversationEnd if the Dialogue Manager GameObject is different from the actor and conversant GameObjects.
Syoka
Posts: 11
Joined: Sun Apr 21, 2024 1:38 pm

Re: OnConversationEnd triggered twice

Post by Syoka »

I am using 2.2.45 version.
My dialogue manager object is not actor nor conversant, so this will cause double trigger of OnConversationEnd event?
User avatar
Tony Li
Posts: 22108
Joined: Thu Jul 18, 2013 1:27 pm

Re: OnConversationEnd triggered twice

Post by Tony Li »

Hi,

No, OnConversationEnd will run on the Dialogue Manager and the actor. If the conversant is different from the actor, it will also run on the conversant.
Post Reply