The Wait X seconds action sync/async question

Hello, folks. I have a question on the Wait X second events. I’ve studied the documentation and tried to search for relevant topis, however, can’t seem to find an explanation.

The question is - will a Wait action in an external function (which is NOT async, btw) called from a scene stop this scene or run in background?

I try to implement a logic similar to a live chat and the external function is responsible both for selecting a valid message text AND for waiting some time to make it look more like a real message typed by a person rather than a robot typing instantly. However, while the message is selected and “typed”, all of the other game logic should continue without delays. So am I on the right path or …?

Thank anyone for any clarification in advance.

The wait action inserts a wait where it’s placed and skips any actions or direct subevents. It continues to execute all of the other events.

When the wait time expires it triggers the events and subevents directly after it.

1 Like

Oh, so it doesn’t actually stop the other events! Great to know, thank you.

This, however, means that my other objects in the game were lagging not due to the Wait() action, but for some other reason, but at least I now I know I don’t know it ))

1 Like