Difference between revisions of "Combat GetAttackType"

From Dragon Age Toolset Wiki
Jump to: navigation, search
m
m
Line 6: Line 6:
  
 
Variables:
 
Variables:
 +
 +
Returns:
  
 
Used for:
 
Used for:

Revision as of 06:54, 1 August 2011

Called by:

Calls:

Parameters:

Variables:

Returns:

Used for:

// -----------------------------------------------------------------------------
// 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