Difference between revisions of "HasAbility"

From Dragon Age Toolset Wiki
Jump to: navigation, search
m (1 revision: Importing auto-generated function articles)
(links)
 
Line 1: Line 1:
{{Generated with errors}}
 
 
{{dafunction
 
{{dafunction
 
|name=HasAbility
 
|name=HasAbility
Line 8: Line 7:
 
|param2type=int
 
|param2type=int
 
|param2name=nAbility
 
|param2name=nAbility
|param2desc=
+
|param2desc=The ability to test for
 
|returntype=int
 
|returntype=int
 
|returndesc=Returns TRUE if oCreature has the specified ability
 
|returndesc=Returns TRUE if oCreature has the specified ability
Line 17: Line 16:
 
== Description ==
 
== Description ==
 
<!-- This section contains the full description from the functions comments. Do not change unless you are confident these are incomplete or incorrect. -->
 
<!-- This section contains the full description from the functions comments. Do not change unless you are confident these are incomplete or incorrect. -->
Determine whether oCreature has nAbilityID in their list of abilities
+
Determine whether oCreature has nAbilityID in their list of [[abilities]]. See [[ABI base.xls]] for a list of abilities.
  
 
<!-- == Remarks == -->
 
<!-- == Remarks == -->

Latest revision as of 21:39, 11 February 2010

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.