Dialogue System trigger : OnUse() calling children ?

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
User avatar
Strook
Posts: 70
Joined: Fri Nov 08, 2019 10:51 am

Dialogue System trigger : OnUse() calling children ?

Post by Strook »

I am using unity 2019.3.0f1 and Dialogue System 2.2.12

- I have an object A with a dialogue system trigger set to OnUse, used to trigger a conversation.
- i have an object B with a dialogue system trigger set to OnUse, used to set some LUA variables, and is called via Script

Here is my issue, and im not sure if its a feature or a bug :

The object B OnUse() seems to get called when Object A OnUse() is called


When OnUse() is called on a object, is it expected that all the children OnUsed() will be called ?

thanks !!
Currently working on ->Squeakross: Home Squeak Home<- Using Dialogue System Save System and other features.
Previous game made with Dialogue system ->The Spirit and The mouse<-
User avatar
Tony Li
Posts: 22051
Joined: Thu Jul 18, 2013 1:27 pm

Re: Dialogue System trigger : OnUse() calling children ?

Post by Tony Li »

Hi,

It depends on how you're calling OnUse(). If you're using a Selector or Proximity Selector, UNtick 'Broadcast To Children' if you don't want OnUse() to be called on children.
User avatar
Strook
Posts: 70
Joined: Fri Nov 08, 2019 10:51 am

Re: Dialogue System trigger : OnUse() calling children ?

Post by Strook »

thanks ! that was it, i was having a hard time debugging why it was happening, thanks a lot
Currently working on ->Squeakross: Home Squeak Home<- Using Dialogue System Save System and other features.
Previous game made with Dialogue system ->The Spirit and The mouse<-
User avatar
Tony Li
Posts: 22051
Joined: Thu Jul 18, 2013 1:27 pm

Re: Dialogue System trigger : OnUse() calling children ?

Post by Tony Li »

Happy to help!
Post Reply