Bark Trigger Tags

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
bakershah
Posts: 32
Joined: Sun Oct 19, 2014 10:26 am

Bark Trigger Tags

Post by bakershah »

Hi There.

I'm trying to activate a bark with a condition of OnTriggerEnter and that the tag must be Sword. I want it so when my character hits a NPC that triggers them with a bark I have set up in the database. For some reason the barks are never showing up so I'm guessing its not reading my sword. Can you go over again how to do bark triggers with game objects that have specific tags or names in the scene? thanks!

Cheers!

Baq :geek:
User avatar
Tony Li
Posts: 22102
Joined: Thu Jul 18, 2013 1:27 pm

Re: Bark Trigger Tags

Post by Tony Li »

Hi Baq,

If you're using the Dialogue System 1.5.1+, triggers check the tag of the GameObject that entered the trigger collider.

Prior to 1.5.1, it checked the tag of this GameObject and the GameObject assigned to the trigger's Actor field (if assigned).

Also make sure that the Sword GameObject's layer is configured in Physics to register collisions with the NPC's trigger collider.

If that doesn't help, please post a screenshot of your NPC's Inspector view or email an example project to tony (at) pixelcrushers.com. I'll be happy to take a look.
bakershah
Posts: 32
Joined: Sun Oct 19, 2014 10:26 am

Re: Bark Trigger Tags

Post by bakershah »

Hey Tony. Thanks its working now. Cheers!
Post Reply