Announcing Section #1 for Survival Game - Third-person Player Setup

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:

  1. Open SGameState.h

  2. Scroll down and after the SetTimeOfDay function declare a new function like this



UFUNCTION(exec)
void SetTimeScale(float NewTimeScale);


  1. 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 :slight_smile: