Garry's Mod Wiki

Garry's Mod Wiki

  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:

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...