Difference between revisions of "Combat GetAttackHand"
From Dragon Age Toolset Wiki
Mouser9169 (Talk | contribs) m |
m (Fixing category) |
||
| (5 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
| − | Called by: | + | Called by: [[Combat_HandleCommandAttack]] |
| + | |||
| + | Calls: [[GetWeaponStyle]] | ||
| + | |||
| + | Parameters: | ||
| + | |||
| + | Variables: | ||
| + | |||
| + | Returns: | ||
| + | |||
| + | Used for: | ||
<dascript> | <dascript> | ||
| Line 26: | Line 36: | ||
} | } | ||
</dascript> | </dascript> | ||
| − | + | [[Category:Functions from combat_h]] | |
| − | + | ||
Latest revision as of 14:26, 7 August 2011
Called by: Combat_HandleCommandAttack
Calls: GetWeaponStyle
Parameters:
Variables:
Returns:
Used for:
/** * @brief Determine which hand to use for an attack * * Only applicable in dual weapon style. Returns which hand to use for the next attack * * @returns 0 - main hand, 1 - offhand * * @author Georg Zoeller * **/ int Combat_GetAttackHand(object oCreature = OBJECT_SELF) { int nHand = 0; if (GetWeaponStyle(oCreature) == WEAPONSTYLE_DUAL) { nHand = GetLocalInt(oCreature, COMBAT_LAST_WEAPON); SetLocalInt(oCreature, COMBAT_LAST_WEAPON, !nHand); } return nHand; }