disable OnTriggerEnter so conversation doesn't repeat

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
cristoo
Posts: 6
Joined: Sun May 29, 2022 5:30 am

disable OnTriggerEnter so conversation doesn't repeat

Post by cristoo »

Hi,

In my Dialogue System trigger, trigger is set to On Trigger Enter, and when the player approaches the NPC during gameplay, the conversation happens fine, but it retriggers the same conversation each time the player approaches the NPC. Whereas I only want it to happen the first time the player approaches the NPC. In this tutorial https://www.pixelcrushers.com/phpbb/vie ... php?t=2777
which I followed, trigger is set to One Use, which maybe why it isn't working for me.
If anyone has any advice as to how to disable OnTriggerEnter so the conversation doesn't repeat I would be super grateful.
User avatar
Tony Li
Posts: 22118
Joined: Thu Jul 18, 2013 1:27 pm

Re: disable OnTriggerEnter so conversation doesn't repeat

Post by Tony Li »

Hi,

You could configure the Dialogue System Trigger to disable the trigger collider:

disableTriggerCollider.png
disableTriggerCollider.png (36.74 KiB) Viewed 489 times

Or you could use Conditions as described in How To: Run a Conversation Only Once
cristoo
Posts: 6
Joined: Sun May 29, 2022 5:30 am

Re: disable OnTriggerEnter so conversation doesn't repeat

Post by cristoo »

Thank you for your help.
User avatar
Tony Li
Posts: 22118
Joined: Thu Jul 18, 2013 1:27 pm

Re: disable OnTriggerEnter so conversation doesn't repeat

Post by Tony Li »

Happy to help!
cristoo
Posts: 6
Joined: Sun May 29, 2022 5:30 am

Re: disable OnTriggerEnter so conversation doesn't repeat

Post by cristoo »

Yay it works. :D
Post Reply