Garry's Mod Wiki

Entity:FindGestureLayer

  number Entity:FindGestureLayer( number activity )

Description

Searches the currently active layers for a layer playing animation with given activity.

This function only works on BaseAnimatingOverlay entites!

Arguments

1 number with ACT enum activity
The activity to search for.

Returns

1 number layerID
A layer ID for given activity, or -1 if not found.