Use moues click to start conversation??

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Grayson
Posts: 20
Joined: Wed Jan 13, 2021 4:00 pm

Use moues click to start conversation??

Post by Grayson »

Hi - I'm trying to figure out how to start an NPC conversation by clicking on him/her instead of hitting the space bar. On the Usable component I added an On Select event, used the NPC as the object and trigger the DialogueSystemTrigger.OnUse() method.

But....this activates the dialogue as soon as the mouse hover over the NPC. And stops when the mouse is no longer over the NPC. How do I change it to only trigger the conversation when I left-click the NPC? Probably an easier answer....I just can't figure it out....
Grayson
Posts: 20
Joined: Wed Jan 13, 2021 4:00 pm

Re: Use moues click to start conversation??

Post by Grayson »

Nevermind....my game framework has intercepting the right mouse click. Had to disable that and have Dialogue System drive the interaction.
User avatar
Tony Li
Posts: 22051
Joined: Thu Jul 18, 2013 1:27 pm

Re: Use moues click to start conversation??

Post by Tony Li »

Sounds like you got it working. For the benefit of other readers in the future, if you're using a Selector or ProximitySelector, set the Use Key to Mouse 1 or set the Use Button to an input definition that's mapped to "mouse 1".
Post Reply