Two types of "Use"

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
hidingso
Posts: 26
Joined: Sat Sep 25, 2021 2:07 pm

Two types of "Use"

Post by hidingso »

Hi Tony, hope you are doing well.

What would be the best way to implement this kind of feature:

By tapping "F", something happens,
By pressing and holding "F", something else happens.

Ideally I would want to visualize both options for the player (for example Door "F to Open, Hold F to Lock"). I would also wish to visualize the pressing and holding by filling a bar or something.

I managed to "hack" my way through for now, but I was wondering if there would be more "Dialogue System-friendly" way of implementing this. So if you have any ideas, I would love to hear them.

Thank you in advance!
User avatar
Tony Li
Posts: 21965
Joined: Thu Jul 18, 2013 1:27 pm

Re: Two types of "Use"

Post by Tony Li »

Hi,

It's probably best to either make a subclass of Selector/ProximitySelector, or use an entirely different interaction system. If you use a different interaction system, you can still configure it to call DialogueSystemTrigger.OnUse, for example, to interact with a Dialogue System Trigger.
Post Reply