Entity:AddGesture

From Garry's Mod
Jump to: navigation, search
 Entity:AddGesture( )

Contents

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_ Enums.

NOTE This function only works on BaseAnimatingOverlay entites!

Arguments

number activity

The activity to play as the gesture. See ACT_ Enums.

Arguments

boolean autokill=true

Returns

number

Layer ID of the started gesture, used to manipulate the played gesture by other functions.
Personal tools
Navigation