In SGameState.cpp you can find a variable called TimeScale in the constructor, tweak it as you want.
If you want you can set this variable at runtime via console in this way:
-
Open SGameState.h
-
Scroll down and after the SetTimeOfDay function declare a new function like this
UFUNCTION(exec)
void SetTimeScale(float NewTimeScale);
- Now open SGameState.cpp and define your function (personally i done it after the SetTimeOfDay definition)
void ASGameState::SetTimeScale(float NewTimeScale)
{
TimeScale = NewTimeScale;
}
Hope it help