Entity/SetPlaybackRate

From Garry's Mod
Jump to: navigation, search
 Entity:SetPlaybackRate( )

Contents

Description

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

Arguments

number fSpeed

How fast the animation will play.

Examples

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.
Personal tools
Navigation