Combat GetAttackType

From Dragon Age Toolset Wiki
Revision as of 05:29, 1 August 2011 by Mouser9169 (Talk | contribs) (Created page with "Called by: <dascript> // ----------------------------------------------------------------------------- // Return the type of the current attack based on the weapon in the main ha...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Called by:

// -----------------------------------------------------------------------------
// Return the type of the current attack based on the weapon in the main hand
// used only in command_pending...
// -----------------------------------------------------------------------------
int Combat_GetAttackType(object oAttacker, object oWeapon);
int Combat_GetAttackType(object oAttacker, object oWeapon)
{
    if (IsUsingRangedWeapon(oAttacker, oWeapon))
    {
        return ATTACK_TYPE_RANGED;
    }
    else
    {
        return ATTACK_TYPE_MELEE;
    }
}

Category: Combat_H