Dialog Trigger System use with Inventory

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Ekta Bhutwala
Posts: 40
Joined: Mon Sep 05, 2022 5:40 am

Dialog Trigger System use with Inventory

Post by Ekta Bhutwala »

Hii

I am dragging inventory item to use with object and if the object is correct with inventory item, then conversation should start, and object is not correct then other conversation should start.

I have Updated dialog system trigger to OnTriggerEnter so when inventory item get trigger with object, conversation getting start. But I want conversation to start when I lift my mouse button.

Currently I am not checking the inventory triggering with object correct or not. that also i need to figure out. also, conversation should start on mouse button release/drag end.
User avatar
Tony Li
Posts: 22143
Joined: Thu Jul 18, 2013 1:27 pm

Re: Dialog Trigger System use with Inventory

Post by Tony Li »

Hi,

I recommend setting the Dialogue System Trigger to OnUse(). Then write a script that detects the mouse button release. When the script detects the mouse button release, call in the Dialogue System Trigger's OnUse() method.
Post Reply