Garry's Mod Wiki

Entity:SetPlaybackRate

  Entity:SetPlaybackRate( number fSpeed )

Description

Allows you to set how fast an entity's animation will play, with 1.0 being the default speed.

Arguments

1 number fSpeed
How fast the animation will play.

Example

Makes Entity(1)'s viewmodel play animations 50% slower.

Entity(1):GetViewModel():SetPlaybackRate(0.5)
Output: Entity(1)'s viewmodel now plays animations 50% slower.