HasAbility

From Dragon Age Toolset Wiki
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.