How to delay execution of code for non-Actor classes?

Discussions about Coding and Scripting
Post Reply
sn260591
Average
Posts: 75
Joined: Sat Jun 01, 2013 10:38 am

How to delay execution of code for non-Actor classes?

Post by sn260591 »

SetTimer() and Sleep() is not available in this case.
User avatar
Wormbo
Adept
Posts: 258
Joined: Sat Aug 24, 2013 6:04 pm
Contact:

Re: How to delay execution of code for non-Actor classes?

Post by Wormbo »

If you have functions that get called regularly, go find yourself a LevelInfo and use that to do keep track of the time. Otherwise I recommend spawning a custom actor on the current level or the entry level to do the timing for you.

But that's just the very generic suggestion. A more specific one depends on what exactly you are trying to achieve. (Stating that is a much better way to get good answers anyway - you might have an idea for an approach, but it could be way off track.)
sn260591
Average
Posts: 75
Joined: Sat Jun 01, 2013 10:38 am

Re: How to delay execution of code for non-Actor classes?

Post by sn260591 »

Wormbo wrote:A more specific one depends on what exactly you are trying to achieve.
It is connected to GUI. It is necessary for me that after clicking of the button some part of a code was executed after one second.
Post Reply