Entity/GetSequenceMovement

From Garry's Mod
Jump to: navigation, search
 Entity:GetSequenceMovement( )

Contents

Description

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

Arguments

number sequenceId

The sequence index. See Entity:GetSequenceName.

Arguments

number startCycle

The sequence start cycle. 0 is the start of the animation, 1 is the end.

Arguments

number endCyclnde

The sequence end cycle. 0 is the start of the animation, 1 is the end. Values like 2, etc are allowed.

Returns

boolean

Whether the operation was successful

Returns

Vector

The delta vector of the animation, how much the model's origin point moved.

Returns

Angle

The delta angle of the animation.
Personal tools
Navigation