Garry's Mod Wiki

Revision Difference

Entity:AddGesture#515753

<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>.⤶ ⤶ <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 &lt;page&gt;ACT&lt;/page&gt;.</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>⤶ ⤶