Page 1 of 1

Bark Trigger Tags

Posted: Fri Jun 05, 2015 11:26 pm
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:

Re: Bark Trigger Tags

Posted: Sun Jun 07, 2015 9:12 pm
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.

Re: Bark Trigger Tags

Posted: Sat Jun 13, 2015 5:08 pm
by bakershah
Hey Tony. Thanks its working now. Cheers!