How does the DefaultTimer method in GameMode timing work?

Hi!

It looks like the ShooterGameExample assumes that the DefaultTimer method in AGameMode is called once every second? Is this safe to assume or do I need to e.g. keep track of the time in order to be sure or is it possible to set the timing in code somewhere?

There whole timer framework

https://docs.unrealengine.com/latest/INT/API/RuntimeModules/Engine/FTimerManager/index.html

You can get access instance of manager from GetWorldTimerManager(), and then you can set timer which calls selected a function after choose time or even intervials :slight_smile:

GetWorldTimerManager().SetTimer(this, &ASomeClass::SomeFunction, time);

Timer is assined to function pointer, which you can can control timer pause it, reset it, read it current state

Thanks! That’s what I need.

Seems that the link is dead now but:

works