Code: Select all
Combo[()
{
if(self.key_pressed = K_FIRE)
{
if(COMBO=0)
{
FireProjectile("10mm_shell", "Hand_R", 0, 10, 20, "health", "");
BlendToAnimation("Walk", 1, true, "");
COMBO=1;
}
}
if(self.key_pressed=K_FIRE)
{
if(COMBO=1)
{
FireProjectile("10mm_shell", "Hand_R", 0, 10, 20, "health", "");
BlendToAnimation("Run", 1, true, "");
COMBO=2;
}
}
if(self.key_pressed = K_FIRE)
{
if(COMBO=2)
{
FireProjectile("10mm_shell", "Hand_R", 0, 10, 20, "health", "");
BlendToAnimation("Jump", 1, true, "");
COMBO=0;
}
}
if(not self.key_pressed = K_FIRE)
{
if(self.animate_at_end = true)
{
COMBO=0;
LowLevel("RunPlayer");
return 0;
}
}
}]