Garry's Mod Wiki

Entity:GetSequenceMovement

boolean, Vector, Angle Entity:GetSequenceMovement( number sequenceId, number startCycle, number endCyclnde )

Description

Returns the delta movement and angles of a sequence of the entity's model.

Arguments

1 number sequenceId
The sequence index. See Entity:GetSequenceName.
2 number startCycle
The sequence start cycle. 0 is the start of the animation, 1 is the end.
3 number endCyclnde
The sequence end cycle. 0 is the start of the animation, 1 is the end. Values like 2, etc are allowed.

Returns

1 boolean
Whether the operation was successful
2 Vector
The delta vector of the animation, how much the model's origin point moved.
3 Angle
The delta angle of the animation.

Page Links


Special Pages


Wikis

?

Render Time: 37ms

DB GetPage 3
Generate Html 10
SaveChanges 16
Render Body 0
Render Sidebar 6