Garry's Mod Wiki

Entity:SetPlaybackRate

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.

Special Pages


Wikis

?

Render Time: 57ms

DB GetPage 42
Generate Html 1
SaveChanges (1) 6
Render Body 0
Render Sidebar 7