Dialogue System Trigger On Trigger Enter to On use collider bug

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
User avatar
gaelgamesdev
Posts: 16
Joined: Wed Jan 19, 2022 11:17 am

Dialogue System Trigger On Trigger Enter to On use collider bug

Post by gaelgamesdev »

Hello!

I have encountered this bug where if I am using a Dialogue System Trigger > Trigger > On Trigger Enter, and I change it to "On Use" through code (dialogueSystemTrigger.trigger = DialogueSystemTriggerEvent.OnUse;) it won't fire up the dialogue again until I exit the collider and enter it again.

EX.

1. Player enters trigger collider on NPC and automatically starts conversation 1 (on trigger enter) > Change Dialogue System Trigger to On use after conversation 1.
2. Conversation 1 ends and player is still inside trigger collider.
3. Player presses input to start conversation 2 > Nothing happens.
4. Player exits and enters trigger collider > Player pressed input to start conversation 2 > conversation start normally, all working fine.

So far I have been using a workaround using 2 colliders, but that's not very efficient.

Is there any other way to fix this bug? Perhaps a setting I missed?

Thank you,
Gael.
User avatar
Tony Li
Posts: 21962
Joined: Thu Jul 18, 2013 1:27 pm

Re: Dialogue System Trigger On Trigger Enter to On use collider bug

Post by Tony Li »

Hi Gael,

Why not create two Dialogue System Triggers -- one set to OnTriggerEnter, one set to OnUse. You can keep the OnUse trigger disabled until you want to enable it. This way you don't have to change the trigger type.
User avatar
gaelgamesdev
Posts: 16
Joined: Wed Jan 19, 2022 11:17 am

Re: Dialogue System Trigger On Trigger Enter to On use collider bug

Post by gaelgamesdev »

Thank you! I'll try that then, and see how it goes 👍
Post Reply