HasAbility

From Dragon Age Toolset Wiki
Revision as of 21:39, 11 February 2010 by BryanDerksen (Talk | contribs) (links)

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

Determine whether oCreature has nAbilityID in their list of abilities

int HasAbility(
object oCreature,
int nAbility
);
Parameters:
oCreature
the creature
nAbility
The ability to test for
Returns:

Returns TRUE if oCreature has the specified ability

Source:

script.ldf

Description

Determine whether oCreature has nAbilityID in their list of abilities. See ABI base.xls for a list of abilities.