Garry's Mod Wiki

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.

Page Links


Special Pages


Wikis

?

Render Time: 33ms

DB GetPage 4
Generate Html 4
SaveChanges 12
Render Body 0
Render Sidebar 11