Garry's Mod Wiki

Entity:AddLayeredSequence

  number Entity:AddLayeredSequence( number sequence, number priority )

Description

Adds a gesture animation to the entity and plays it.

See Entity:AddGestureSequence for a function that doesn't take priority.

See Entity:AddGesture for a function that takes ACT enum.

This function only works on BaseAnimatingOverlay entites!

Arguments

1 number sequence
The sequence ID to play as the gesture. See Entity:LookupSequence.
2 number priority

Returns

1 number
Layer ID of created layer