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.

Page Links


Special Pages


Wikis

?

Render Time: 31ms

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