Page 1 of 1

OnConversationEnd triggered twice

Posted: Sat May 04, 2024 4:10 am
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?

Re: OnConversationEnd triggered twice

Posted: Sat May 04, 2024 8:47 am
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.

Re: OnConversationEnd triggered twice

Posted: Sat May 04, 2024 10:51 am
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?

Re: OnConversationEnd triggered twice

Posted: Sat May 04, 2024 11:24 am
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.