Garry's Mod Wiki

Entity:SetAnimTime

Entity:SetAnimTime( number time )

Description

Sets the time (relative to CurTime) of the current animation frame, which is used to determine Entity:GetCycle.

Arguments

1 number time
The current animation time.

Example

Sets each player's animation time to 1 second in the future, which causes their animations to freeze in place.

function GM:PrePlayerDraw(ply) ply:SetAnimTime(CurTime()+1) end
Output:

Page Links


Special Pages


Wikis

?

Render Time: 25ms

Session 0
DB GetPage 3
Generate Html 3
SaveChanges 12
Render Body 0
Render Sidebar 5