Difference between revisions of "GetCombatantType"

From Dragon Age Toolset Wiki
Jump to: navigation, search
(noting the inconsistency Sunjammer found in this function's return type)
m
Line 16: Line 16:
 
Returns a CREATURE_TYPE_COMBATANT or CREATURE_TYPE_NON_COMBATANT constant.
 
Returns a CREATURE_TYPE_COMBATANT or CREATURE_TYPE_NON_COMBATANT constant.
  
Note that 2da_constants_h also defines a set of CREATURE_TYPE constants. These are not returned by this function, only the CREATURE_TYPE constants defined in script.ldf apply here.
+
Note that 2da_constants_h also defines a set of [[CREATURE_TYPE*]] constants. These are not returned by this function, only the CREATURE_TYPE constants defined in script.ldf apply here.
  
 
<!-- == Remarks == -->
 
<!-- == Remarks == -->

Revision as of 21:20, 19 February 2010

Returns the Combatant Type of a creature

int GetCombatantType(
object oidCreature
);
Parameters:
oidCreature
The creature
Returns:

a CREATURE_TYPE_COMBATANT or CREATURE_TYPE_NON_COMBATANT constant

Source:

script.ldf

Description

Returns a CREATURE_TYPE_COMBATANT or CREATURE_TYPE_NON_COMBATANT constant.

Note that 2da_constants_h also defines a set of CREATURE_TYPE* constants. These are not returned by this function, only the CREATURE_TYPE constants defined in script.ldf apply here.