On Trigger Enter Doesn't Start Conversation

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Timeslip
Posts: 39
Joined: Fri Apr 05, 2019 6:31 am

On Trigger Enter Doesn't Start Conversation

Post by Timeslip »

Hi,

I'm having difficulty with getting a conversation to trigger when a character enters a box collider.

The trigger area is set up like this:
Image

The character is set up like this:
Image

The box collider on the character is tagged as Player, but is a child of other objects with different tags (one of which has a capsule collider). I've tried adding these tags to the conditions, and disabling the capsule collider. Have also tried just starting the conversation on start, which works. Probably missing something small (and stupid) but if you could give me a nudge, would appreciate it!
User avatar
Tony Li
Posts: 22056
Joined: Thu Jul 18, 2013 1:27 pm

Re: On Trigger Enter Doesn't Start Conversation

Post by Tony Li »

Hi,

Trigger colliders don't register collisions with each other. One of them has to have Is Trigger unticked. What about getting rid of that child GameObject and relying on the capsule collider?

If possible, set the tag of the capsule collider GameObject to 'Player'.

It may also need a rigidbody, or put a rigidbody on the dialogue trigger and make it kinematic.
Timeslip
Posts: 39
Joined: Fri Apr 05, 2019 6:31 am

Re: On Trigger Enter Doesn't Start Conversation

Post by Timeslip »

Thanks Tony. Adding a rigidbody and setting it to kinematic worked.
User avatar
Tony Li
Posts: 22056
Joined: Thu Jul 18, 2013 1:27 pm

Re: On Trigger Enter Doesn't Start Conversation

Post by Tony Li »

Great! Glad to help.
Post Reply