GetSimulationManager Function

Gets the main simulation manager.

Syntax

SimulationManager@ GetSimulationManager()

Return value

SimulationManager@
The main simulation manager.

Remarks

This function is guaranteed to return a valid manager, even if called from e.g. the Render function. However, this does not mean that a player is in the race. To check that, use the InRace property. Note that, the instance may be valid, but properties like PlayerInfo or SceneVehicleCar may be null when the player is not in the race.