# CBaseAnimating

extends CBaseModelEntity

Function Description Client
float ActiveSequenceDuration() Returns the duration in seconds of the active sequence.
Vector GetAttachmentAngles(iAttachment) Get the attachment id's angles as a p,y,r vector.
Vector GetAttachmentForward(iAttachment) Get the attachment id's forward vector.
Vector GetAttachmentOrigin(iAttachment) Get the attachment id's origin vector.
float GetCycle() Get the cycle of the animation.
table GetGraphParameter(pszParam) Get the value of the given animGraph parameter
float GetModelScale() Get scale of entity's model.
string GetSequence() Returns the name of the active sequence.
bool IsSequenceFinished() Ask whether the main sequence is done playing.
void ResetSequence(pSequenceName) Sets the active sequence by name, resetting the current cycle.
int ScriptLookupAttachment(pAttachmentName) Get the named attachment id.
float SequenceDuration(pSequenceName) Returns the duration in seconds of the given sequence name.
void SetGraphLookTarget(vValue) Pass the desired look target in world space to the graph
void SetGraphParameter(pszParam, svArg) Set the specific param value, type is inferred from the type in script
void SetGraphParameterBool(szName, bValue) Set the specific param on or off
void SetGraphParameterEnum(szName, nValue) Pass the enum (int) value to the specified param
void SetGraphParameterFloat(szName, flValue) Pass the float value to the specified param
void SetGraphParameterInt(szName, nValue) Pass the int value to the specified param
void SetGraphParameterVector(szName, vValue) Pass the vector value to the specified param in the graph
void SetModelScale(flScale) Set scale of entity's model.
float SetPoseParameter(szName, fValue) Set the specified pose parameter to the specified value.
void SetSequence(pSequenceName) Sets the active sequence by name, keeping the current cycle.
void StopAnimation() Stop the current animation by setting playback rate to 0.0.