Garry's Mod Wiki

Entity:RemoveGesture

  Entity:RemoveGesture( number activity )

Description

Removes and stops the gesture with given activity.

This function only works on BaseAnimatingOverlay entites!
Layer removal procedures aren't immediate. Layer removal functions actually manipulate Entity:GetLayerWeight down to 0, then remove the layer in next intervals. If the targeted layer's weight keeps changing, your layer will not be removed.

Arguments

1 number activity
The activity remove. See ACT enum.