How to calculate the time of the widget display on the screen?

Hello,
I want to calculate the time when the widget is displayed on the screen.

Goal to achieve:- when the game starts, after 20 seconds of delay one widget(alert) appears on the screen after that the user presses the G key on the keyboard, to this reason widget(alert) will be removed from the screen.

How I can calculate the time between the widget(alert) display on the screen and removal from the screen??

Delay by 20s or run a 20s timer.

Hello @Everynone ,

I have already added the 20s delay. I want to calculate the time between the widget(alert) display on the screen and removal from the screen??

I don’t understand. What’s there to calculate? You already get a trigger after 20s. Do you want to display a clock running out of time? As in - the progress is seconds?

Hello @Everynone

Thank you for your quick response,
Let me explain to you in more detail

I am working on an autonomous vehicle project and want to calculate the transition time between autonomous and manual vehicle.
My project requirement is:-
Once the game starts the autonomous vehicle follows the spline path and after 20 seconds the alert(TAKE OVER CONTROL) appears on the screen and user presses the H key from the keyboard that breaks the path, convert to manual vehicle and remove the alert.

when the alert(widget) appears on the screen the user presses the keyboard key to remove it and convert to a manual vehicle but every user takes a different transition time as the user is busy on their phone.

Basically, that transition time I want to calculate.

Hope now you can help me!

You can use Timer instead of delay, you will have more control over.

Example:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.