How I can desactivate the "Use key" for timelines

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Onebit
Posts: 15
Joined: Tue Aug 15, 2023 1:01 pm

How I can desactivate the "Use key" for timelines

Post 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.
User avatar
Tony Li
Posts: 22112
Joined: Thu Jul 18, 2013 1:27 pm

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

Post 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.
Onebit
Posts: 15
Joined: Tue Aug 15, 2023 1:01 pm

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

Post by Onebit »

But I want it one time and not every dialogue.
User avatar
Tony Li
Posts: 22112
Joined: Thu Jul 18, 2013 1:27 pm

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

Post 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.
Post Reply