Page 1 of 1

[BUG?] Dialogue System Trigger - OnTriggerEnter

Posted: Wed Nov 23, 2022 11:37 am
by ZeroElementGames
Hello there,

So I'm having trouble into getting correctly the required conditions in Conditions in the Dialogue System Trigger component.

I added an Accepted Tags (Player).
I have a Box Collider component.
And I have a script that also checks in OnTriggerEnter if the "Player" (tag) has entered. This script is after the Box Collider and before the Dialogue System Trigger, so it receives OnTriggerEnter events before the Dialogue System Trigger.

When the player enters, the required conditions gets Last Check: True, but then a player companion also enters the Box Collider (it follows the Player), and then the required conditions changes to LastCheck: False

GIF:
Spoiler
ezgif.com-gif-maker (6).gif
ezgif.com-gif-maker (6).gif (962.61 KiB) Viewed 121 times

The companion doesn't have any "Player" tag, as the Player does. Why does this happens? Is this a bug?

Re: [BUG?] Dialogue System Trigger - OnTriggerEnter

Posted: Wed Nov 23, 2022 2:15 pm
by Tony Li
Hi,

If I understand you correctly, that's the way it's supposed to work.

1. The player enters the Dialogue System Trigger's trigger collider. The player is tagged "Player", so the check is true. Assuming any other conditions are also true (e.g., Lua Conditions, Quest Conditions, etc.), the inspector will show "Last Check: True" and the Dialogue System Trigger will run the Actions.

2. Then player companion enters the trigger. It's not tagged "Player", so the inspector will change to "Last Check: False" and not run the Actions again.