Difference between revisions of "CanUseItem"

From Dragon Age Toolset Wiki
Jump to: navigation, search
m (1 revision: Importing auto-generated function articles)
Line 1: Line 1:
{{Generated with errors}}
 
 
{{dafunction
 
{{dafunction
 
|name=CanUseItem
 
|name=CanUseItem
Line 5: Line 4:
 
|param1type=object
 
|param1type=object
 
|param1name=oCreature
 
|param1name=oCreature
|param1desc=
+
|param1desc=The creature whose suitability is to be tested
 
|param2type=object
 
|param2type=object
 
|param2name=oItem
 
|param2name=oItem
|param2desc=
+
|param2desc=The item to test whether the creature can use
 
|returntype=int
 
|returntype=int
|returndesc=
+
|returndesc=True if the creature can use it, false otherwise
 
|sourcefile=script.ldf
 
|sourcefile=script.ldf
 
|sourcemodule=
 
|sourcemodule=
Line 27: Line 26:
 
<!-- This section contains links to articles, functions or constant groups. -->
 
<!-- This section contains links to articles, functions or constant groups. -->
  
[[Category: Uncategorised function]]
+
[[Category: Creature function]]

Revision as of 23:52, 10 February 2010

Returns whether the creature satifies *all* the requirements for using the item

int CanUseItem(
object oCreature,
object oItem
);
Parameters:
oCreature
The creature whose suitability is to be tested
oItem
The item to test whether the creature can use
Returns:

True if the creature can use it, false otherwise

Source:

script.ldf