Garry's Mod Wiki

Revision Difference

Entity:GetSequenceMovement#518497

<function name="GetSequenceMovement" parent="Entity" type="classfunc"> <description>Returns the delta movement and angles of a sequence of the entity's model.</description> <realm>Shared</realm> <args> <arg name="sequenceId" type="number">The sequence index. See &lt;page&gt;Entity:GetSequenceName&lt;/page&gt;.</arg> <arg name="sequenceId" type="number">The sequence index. See <page>Entity:GetSequenceName</page>.</arg> <arg name="startCycle" type="number">The sequence start cycle. 0 is the start of the animation, 1 is the end.</arg> <arg name="endCyclnde" type="number">The sequence end cycle. 0 is the start of the animation, 1 is the end. Values like 2, etc are allowed.</arg> </args> <rets> <ret name="" type="boolean">Whether the operation was successful</ret> <ret name="" type="Vector">The delta vector of the animation, how much the model's origin point moved.</ret> <ret name="" type="Angle">The delta angle of the animation.</ret> </rets> </function>