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.

Arguments

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