Garry's Mod Wiki

Entity:SetLayerWeight

  Entity:SetLayerWeight( number layerID, number weight )

Description

Sets the layer weight. This influences how strongly the animation should be overriding the normal animations of the entity.

This function only works on BaseAnimatingOverlay entities.
Setting either Entity:SetLayerBlendIn or Entity:SetLayerBlendOut above 0 will turn on automatic weight blending, so you shouldn't be using this if you use any of above.

Arguments

1 number layerID
The Layer ID
2 number weight
The new layer weight.