Garry's Mod Wiki

physenv.SetTimeScale

  physenv.SetTimeScale( number timeScale )

Recently Added

This was recently added in version (2026.05.05). It might only be available on the Dev Branch right now.

Description

Sets the time scale of the physics simulation.

This will affect serverside-only physics if called on server, and clientside-only physics if used on the client.

See game.SetTimeScale for a function that also affects all game logic.

The true timescale will be phys_timescale (cl_phys_timescale on client) multiplied by physenv.GetTimeScale.

Arguments

1 number timeScale
The new timescale, minimum value is 0.001 and maximum is 5.