Garry's Mod Wiki

Revision Difference

Entity:SetAnimTime#517313

<function name="SetAnimTime" parent="Entity" type="classfunc"> <description>Sets the time (relative to <page>Global.CurTime</page>) of the current animation frame, which is used to determine <page>Entity:GetCycle</page>.</description> <realm>Client</realm> <args> <arg name="time" type="number">The current animation time.</arg> </args> </function> <example> <description>Sets each player's animation time to 1 second in the future, which causes their animations to freeze in place.</description> <code> function GM:PrePlayerDraw(ply) ply:SetAnimTime(CurTime()+1) end </code> <output></output>⤶ <output><image src="Entity_SetAnimTime_example1.gif"/></output>⤶ </example>