Page 1 of 1

How I can desactivate the "Use key" for timelines

Posted: Sun Feb 25, 2024 9:05 am
by Onebit
Hi, I want to do a timeline with dialogues and I have an issue, I have active the "Proximity Selector" and the "Use key" as Z.
So when the dialogues show up into the cutscene you can still skip the dialogues pressing Z, and I want to not do that in cutscenes. How I can fix that?
Thanks in advance.

Re: How I can desactivate the "Use key" for timelines

Posted: Sun Feb 25, 2024 9:40 am
by Tony Li
Hi,

Please see 07:00 of the Interaction Tutorial. It explains how to use a Dialogue System Events component to disable components such as the Proximity Selector.

Re: How I can desactivate the "Use key" for timelines

Posted: Sun Feb 25, 2024 11:52 am
by Onebit
But I want it one time and not every dialogue.

Re: How I can desactivate the "Use key" for timelines

Posted: Sun Feb 25, 2024 12:25 pm
by Tony Li
I think maybe there's a misunderstanding.

The Proximity Selector only selects Usable GameObjects and, when you press the Use Key, it sends the "OnUse" message to them. It does not skip dialogues.

There are two ways for input to skip dialogues:

1. If you have assigned a key to the Dialogue Manager's Display Settings > Input Settings > Cancel Subtitle Input > Key, then pressing this key will advance the conversation.

2. If you have set the Dialogue Manager's Subtitle Settings > Continue Button mode to a mode such as Always that uses continue buttons, then the dialogue UI will enable its continue button(s). If you press the EventSystem's Submit input while the continue button is focused (selected), it will advance the conversation. It will also advance if you click on the continue button with the mouse, or if you have added a UI Button Key Trigger component to the continue button and set its Key to Z.