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
Bark Trigger Tags
Re: Bark Trigger Tags
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.
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
Hey Tony. Thanks its working now. Cheers!