Skip to main content

GetSimulationSpeed

This function was added in DSL 10

Description​

Return the game's simulation speed, where 1.0 is the default and is used almost 100% of the time.

function GetSimulationSpeed() --[[ ... ]] end

Parameters​

None.

Return Values​

  • simulationSpeed: number - The current simulation speed of the game. The default value is 1.0.

Example​

local speed = GetSimulationSpeed()
print("Current simulation speed: " .. speed)