Garry's Mod Wiki

Revision Difference

Entity:GetSequenceMovement#546928

<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 <page>Entity:GetSequenceName</page>.</arg> <arg name="sequenceId" type="number">The sequence index. See <page>Entity:LookupSequence</page>.</arg> <arg name="startCycle" type="number" default="0">The sequence start cycle. 0 is the start of the animation, 1 is the end.</arg> <arg name="endCyclnde" type="number" default="1">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>