Garry's Mod Wiki

game.SetTimeScale

game.SetTimeScale( number timeScale )

Description

Sets the time scale of the game.

This function is supposed to remove the need of using the host_timescale convar, which is cheat protected.

To slow down or speed up the movement of a specific player, use Player:SetLaggedMovementValue instead.

Like host_timescale, this method does not affect sounds, if you wish to change that, look into GM:EntityEmitSound.

Arguments

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

Page Links


Special Pages


Wikis

?

Render Time: 125ms

DB GetPage 20
Generate Html 3
SaveChanges (1) 87
Render Body 0
Render Sidebar 12