SimulationManager::Respawn Method

Queues a deterministic respawn at the next race tick.

Syntax

void SimulationManager::Respawn()

Return value

None.

Remarks

In a simulation context, TMInterface will add a new input event to the existing event buffer such that that the car respawns at the next tick.

The function will respawn the car to the nearest respawnable checkpoint or if there was no passed checkpoints, restart the race. The behavior of this function also depends on the start_respawn console variable set within TMInterface. If start_respawn is set to true, respawning without any passed checkpoints will not restart the race, but only respawn the car on the start block, simulating online respawn behavior.