After dialogue ends, I want to run an Event, after a few seconds.
The way I'm doing it now is enable a gameobject with a TimedEvent script that "Activates on Start". Unfortunately this will only work once.
Is there any other function I could call to run to restart the timer, so that it doesn't only run the first time the TimedEvent object is enabled?
Timed event
Re: Timed event
Hi,
Instead of activating the GameObject, you can UNtick Activate On Start and configure the end of the conversation to call the StartTimer() method. For example, you could set the final dialogue entry's Sequence to:
This will call the Timed Event component's StartTimer() method on the GameObject named "MyTimerGameObject".
Instead of activating the GameObject, you can UNtick Activate On Start and configure the end of the conversation to call the StartTimer() method. For example, you could set the final dialogue entry's Sequence to:
Code: Select all
SendMessage(StartTimer, , MyTimerGameObject)