Difference between revisions of "CanUseItem"
From Dragon Age Toolset Wiki
BryanDerksen (Talk | contribs) m (1 revision: Importing auto-generated function articles) |
BryanDerksen (Talk | contribs) |
||
Line 1: | Line 1: | ||
− | |||
{{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: | + | [[Category: Creature function]] |
Revision as of 23:52, 10 February 2010
Returns whether the creature satifies *all* the requirements for using the item
- 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