Ending Bark from script

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Mydel
Posts: 1
Joined: Tue Feb 15, 2022 4:46 am

Ending Bark from script

Post by Mydel »

Hey im wondering how can i force to end bark from script.

In my case im barking while player hover into object but when picking it i would like to end bark with nametag.

Do anyone know how to do it?
User avatar
Tony Li
Posts: 21981
Joined: Thu Jul 18, 2013 1:27 pm

Re: Ending Bark from script

Post by Tony Li »

Hi,

If you want to hide a specific bark UI, you can call its Hide() method.

If you have a group of barkers and you don't know which one is barking, you can either handle it yourself and call Hide(), or you can use bark groups.
How to hide all in a bark group
1. Add a Bark Group Member component to each barker, and assign the same group ID to them.
2. Create an empty GameObject and add a Bark Group Member component with the same group ID (e.g., named NoBark).
3. Call BarkGroupManager.instance.Mutex(groupID, NoBark);[/code]
Post Reply