Difference between revisions of "CanUseItem"
From Dragon Age Toolset Wiki
(Generated by Sunjammer's Dragon Age Script Paser) |
BryanDerksen (Talk | contribs) m |
||
(4 intermediate revisions by the same user not shown) | |||
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 functions]] |
+ | [[Category:Items functions]] |
Latest revision as of 23:53, 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