Garry's Mod Wiki

Revision Difference

Entity:AddGesture#518971

<function name="AddGesture" parent="Entity" type="classfunc"> <description> Adds a gesture animation to the entity and plays it. See <page>Entity:AddGestureSequence</page> and <page>Entity:AddLayeredSequence</page> for functions that takes sequences instead of <page>ACT</page>. See <page>Entity:AddGestureSequence</page> and <page>Entity:AddLayeredSequence</page> for functions that takes sequences instead of <page>Enums/ACT</page>. <note>This function only works on <page>BaseAnimatingOverlay</page> entites!</note> </description> <realm>Server</realm> <args> <arg name="activity" type="number">The activity to play as the gesture. See <page>ACT</page>.</arg> <arg name="activity" type="number">The activity to play as the gesture. See <page>Enums/ACT</page>.</arg> <arg name="autokill" type="boolean" default="true"></arg> </args> <rets> <ret name="" type="number">Layer ID of the started gesture, used to manipulate the played gesture by other functions.</ret> </rets> </function>