How to delay execution of code for non-Actor classes?
How to delay execution of code for non-Actor classes?
SetTimer() and Sleep() is not available in this case.
Re: How to delay execution of code for non-Actor classes?
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.)
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.)
Re: How to delay execution of code for non-Actor classes?
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.Wormbo wrote:A more specific one depends on what exactly you are trying to achieve.