Punch/Kick/Shoot
Posted: Mon Jan 14, 2008 10:20 pm
How do you make an actor lower another actor's health only when it punches/kicks/shoots etc?
if(attackvar == 1)
{
health = health - 10;
}
ChangeAnimation("EventActor","PunchAnimation",FORWARD);
attack=1;
ChangeAnimation("EventActor","StopAnimation",FORWARD);
attack=0;
if(Actor1.attack==1)
{
ChangeAnimation("EventActor","HitAnimation,FORWARD);
power-=3;
}
ChangeAnimation("EventActor","StopAnimation",FORWARD);