DIFF

class AnimCommandBaseSource

base class of all commands exposed to script to provide common functionality over animations

Constructors 2

protected void AnimCommandBase()
protected void ~AnimCommandBase()

Methods 11

proto native IEntity GetEntity()

returns entity that this command is bount to

void OnActivate()

called when command starts

void OnDeactivate()

called when command ends

void PreAnimUpdate(float pDt)

called before any animation is processed here change animation values, add animation commands

void PrePhysUpdate(float pDt)

after animation is processed, before physics is processed here you can listen to various events

proto native void PreAnim_CallCommand(int pCommand, int pParamInt, float pParamFloat)

functions usable only from OnActivate or PreAnimUpdate

proto native void PreAnim_SetFloat(int pVar, float pFlt)
proto native void PreAnim_SetInt(int pVar, int pInt)
proto native void PreAnim_SetBool(int pVar, bool pBool)
proto native bool PrePhys_IsEvent(int pEvent)

functions usable in PrePhysUpdate

proto native bool PrePhys_IsTag(int pTag)