Page 1 of 1

Prevent to reopen dialog for a shot time

Posted: Sun Nov 21, 2021 10:06 am
by Noa3
Hi i want to ask what the best way would be to prevent the player to reopen a dialog short after he have already spoken with it.

i use Proximity Sensor on the player and the Usable components on the interactables.

like the situation he goes to an object and want to interact with it. if he want to spam the use/dialog skip button then the dialog goes through and reopens again if the button got pressed one time.

i hope you understand what i mean and thanks for your time.

Re: Prevent to reopen dialog for a shot time

Posted: Sun Nov 21, 2021 10:55 am
by Tony Li
Hi,

Add a Dialogue System Events component. Configure OnConversationStart() to disable the Usable. Configure OnConversationEnd() to start a Timed Event that re-enables the Usable:

delayReuse.png
delayReuse.png (39.98 KiB) Viewed 165 times

Re: Prevent to reopen dialog for a shot time

Posted: Mon Nov 29, 2021 8:54 am
by Noa3
thanks this worked, i created a script wich turn all usables off while in dialog and turn them on if the dialog is finished

Re: Prevent to reopen dialog for a shot time

Posted: Mon Nov 29, 2021 9:05 am
by Tony Li
Sounds good!