Garry's Mod Wiki

Entity:AddGesture

  number Entity:AddGesture( number activity, boolean autokill = true )

Description

Adds a gesture animation to the entity and plays it.

See Entity:AddGestureSequence and Entity:AddLayeredSequence for functions that takes sequences instead of ACT enum.

This function only works on BaseAnimatingOverlay entites!

Arguments

1 number activity
The activity to play as the gesture. See ACT enum.
2 boolean autokill = true

Returns

1 number
Layer ID of the started gesture, used to manipulate the played gesture by other functions.