Garry's Mod Wiki

Entity:SetLayerCycle

  Entity:SetLayerCycle( number layerID, number cycle )

Description

Sets the animation cycle/frame of given layer.

This function only works on BaseAnimatingOverlay entities.

Arguments

1 number layerID
The Layer ID
2 number cycle
The new animation cycle/frame for given layer.