Call a function after a set period of time

I’m a C++ noob, so please go easy on me.

I disabled character movement in OnLanded in my character’s .cpp file. I’d like to re-enable movement after .25 seconds. I set it up in Tick before, but it doesn’t seem to use consistent time intervals.

Thanks.

Hi micahpharoh,

Try this

GetWorldTimerManager().SetTimer(this, &MyActor::MyFunction, TimeInterval, false);

Best regards,

1 Like

This worked perfectly, thank you.