Melee attack while jumping?

zaguarman

New member
I want the character to be able to make melee attacks and jump or viceversa. This was being blocked in the UsesItemActionType method in the Use class inherited from ItemAbility. I disabled it by returning true.

C#:
if (startingAbility is Jump) {
    for (int i = 0; i < m_UsableItems.Length; ++i) {
        if (m_UsableItems[i] is MeleeWeapon) {
            return true;
        }
    }
}

Now I'm wondering how to create a blending between the jumping and attacking animations.

I also know that the rifle has something like that but I don't know how to implement it for the swords...
 
Have you seen the InAirMeleeUse ability? This should give you a good idea on how to use the two together.
 
Top