```
class MY_InfectedST
{
protected int m_CMD_Attack;
protected int m_TAG_Attack;
void MY_InfectedST( ZombieBase zmb )
{
DayZCreatureAnimInterface anim_i = zmb.GetAnimInterface();
m_CMD_Attack = zai.BindCommand( "CMD_ATTACK" );
m_TAG_Attack = anim_i.BindTag("TagAttack");
}
void CallAttack( DayZInfectedCommandScript script, int pParamInt, float pParamFloat)
{
script.PreAnim_CallCommand( m_CMD_Attack, pParamInt, pParamFloat );
}
int GetAttackTag()
{
return m_TAG_Attack;
}
};
class MyCoolAnimCommand extends DayZInfectedCommandScript
{
private bool m_TagActive;
private MY_InfectedST m_ST;
private DayZInfectedInputController m_Input;
void MyCoolAnimCommand(DayZInfected pInfected, MY_InfectedST table)
{
m_Input = pInfected.GetInputController();
m_ST = table;
}
override void OnActivate()
{
m_Input.OverrideMovementSpeed(true, 0.0);
m_ST.CallAttack( this, 3, 0);
}
override void OnDeactivate()
{
m_Input.OverrideMovementSpeed(false, 0.0);
}
override void PrePhysUpdate(float pDt)
{
//PrePhys_IsTag always return false regardless of the presence of the tag!
m_TagActive = PrePhys_IsTag( m_ST.GetAttackTag() );
}
override bool PostPhysUpdate(float pDt)
{
//m_TagActive always false
return m_TagActive;
}
};
```