Page 1 of 1

Use moues click to start conversation??

Posted: Tue Feb 23, 2021 12:04 am
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....

Re: Use moues click to start conversation??

Posted: Tue Feb 23, 2021 12:42 am
by Grayson
Nevermind....my game framework has intercepting the right mouse click. Had to disable that and have Dialogue System drive the interaction.

Re: Use moues click to start conversation??

Posted: Tue Feb 23, 2021 8:10 am
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".