Garry's Mod Wiki

Player:SetLaggedMovementValue

Player:SetLaggedMovementValue

Player:SetLaggedMovementValue( number timescale )

Description

Slows down the player movement simulation by the timescale, this is used internally in the HL2 weapon stripping sequence.

It achieves such behavior by multiplying the FrameTime by the specified timescale at the start of the movement simulation and then restoring it afterwards.

This is reset to 1 on spawn.

There is no weapon counterpart to this, you'll have to hardcode the multiplier in the weapon or call Weapon:SetNextPrimaryFire / Weapon:SetNextSecondaryFire manually from a.

Arguments

1 number timescale
The timescale multiplier.

Special Pages


Wikis

?

Render Time: 20ms

DB GetPage 3
Generate Html 2
SaveChanges (1) 5
Render Body 0
Render Sidebar 8