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