Render Object "Unusable" after OnConversationEnd()

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
ar4wy
Posts: 26
Joined: Fri Nov 15, 2019 10:16 pm

Render Object "Unusable" after OnConversationEnd()

Post by ar4wy »

Hi Tony!

Thanks for your help on other topics!

I'm using a proximity selector and I'm trying to make an object "Unusable" after I have a conversation with it.

So...

1) Enter trigger zone, OnSelectedUsable() is triggered
2) Use Object, begin conversation
3) end conversation, object becomes "unusable" and trigger a OnDeselectedUsable(). (And stays unusable "forever")

For step 3, I tried to make Max Use Distance to 0 after the conversation is over. I tried to disable to the Trigger Collider. I have tried to disable the "usable" component. These have not been successful.

Could you point me in the right direction for this?

Best!
User avatar
Tony Li
Posts: 22054
Joined: Thu Jul 18, 2013 1:27 pm

Re: Render Object "Unusable" after OnConversationEnd()

Post by Tony Li »

Hi,

On the object, you can configure a Dialogue System Events component's OnConversationEnd() event, or just add an OnExecute() event to the Dialogue System Trigger. In either case, configure it to remove the usable from the Proximity Selector's detected list and disable the Usable component:

proxSelectorUsableOff.png
proxSelectorUsableOff.png (57.54 KiB) Viewed 508 times
ar4wy
Posts: 26
Joined: Fri Nov 15, 2019 10:16 pm

Re: Render Object "Unusable" after OnConversationEnd()

Post by ar4wy »

thank you!
works great!
User avatar
Tony Li
Posts: 22054
Joined: Thu Jul 18, 2013 1:27 pm

Re: Render Object "Unusable" after OnConversationEnd()

Post by Tony Li »

Happy to help!
Post Reply