Page 1 of 1

Dialogue System Trigger On Trigger Enter to On use collider bug

Posted: Sat Nov 19, 2022 5:32 am
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.

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

Posted: Sat Nov 19, 2022 11:41 am
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.

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

Posted: Sun Nov 20, 2022 1:03 am
by gaelgamesdev
Thank you! I'll try that then, and see how it goes 👍