Page 1 of 1

Render Object "Unusable" after OnConversationEnd()

Posted: Sun May 10, 2020 8:28 am
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!

Re: Render Object "Unusable" after OnConversationEnd()

Posted: Sun May 10, 2020 8:58 am
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 506 times

Re: Render Object "Unusable" after OnConversationEnd()

Posted: Mon May 11, 2020 4:46 am
by ar4wy
thank you!
works great!

Re: Render Object "Unusable" after OnConversationEnd()

Posted: Mon May 11, 2020 11:07 am
by Tony Li
Happy to help!