Garry's Mod Wiki

Entity:SetAnimTime

  Entity:SetAnimTime( number time )

Description

Sets the start time (relative to CurTime) of the current animation, which is used to determine Entity:GetCycle. Should be less than CurTime to play an animation from the middle.

Arguments

1 number time
The time the animation was supposed to begin.

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: