Page 1 of 1

Two types of "Use"

Posted: Thu Oct 06, 2022 10:52 am
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!

Re: Two types of "Use"

Posted: Thu Oct 06, 2022 11:02 am
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.