Garry's Mod Wiki

Revision Difference

Entity:AddLayeredSequence#515751

<function name="AddLayeredSequence" parent="Entity" type="classfunc">⤶ <description>⤶ Adds a gesture animation to the entity and plays it.⤶ ⤶ ⤶ See <page>Entity:AddGestureSequence</page> for a function that doesn't take priority.⤶ ⤶ ⤶ See <page>Entity:AddGesture</page> for a function that takes <page>ACT</page>.⤶ ⤶ <note>This function only works on <page>BaseAnimatingOverlay</page> entites!</note>⤶ </description>⤶ <realm>Server</realm>⤶ <args>⤶ <arg name="sequence" type="number">The sequence ID to play as the gesture. See &lt;page&gt;Entity:LookupSequence&lt;/page&gt;.</arg>⤶ <arg name="priority" type="number"></arg>⤶ </args>⤶ <rets>⤶ <ret name="" type="number">Layer ID of created layer</ret>⤶ </rets>⤶ </function>⤶ ⤶