Page 1 of 1

disable OnTriggerEnter so conversation doesn't repeat

Posted: Mon May 30, 2022 8:29 am
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.

Re: disable OnTriggerEnter so conversation doesn't repeat

Posted: Mon May 30, 2022 9:01 am
by Tony Li
Hi,

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

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

Or you could use Conditions as described in How To: Run a Conversation Only Once

Re: disable OnTriggerEnter so conversation doesn't repeat

Posted: Mon May 30, 2022 9:26 am
by cristoo
Thank you for your help.

Re: disable OnTriggerEnter so conversation doesn't repeat

Posted: Mon May 30, 2022 9:58 am
by Tony Li
Happy to help!

Re: disable OnTriggerEnter so conversation doesn't repeat

Posted: Tue May 31, 2022 12:08 am
by cristoo
Yay it works. :D