Combat GetAttackHand
From Dragon Age Toolset Wiki
Revision as of 05:18, 1 August 2011 by Mouser9169 (Talk | contribs) (Created page with "<dascript> /** * @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 ...")
/** * @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; }