Difference between revisions of "SetCanUseItem"

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=SetCanUseItem
 
|name=SetCanUseItem
|brief=Sets whether the creature satifies a retriction property.  This is used only as a response
+
|brief=Sets whether the creature satifies a retriction property.  This is used only as a response to the [[EVENT_TYPE_ITEM_ONTEST_USABLE]] event.
 
|param1type=object
 
|param1type=object
 
|param1name=oCreature
 
|param1name=oCreature
|param1desc=
+
|param1desc=Creature whose usability restriction is to be set
 
|param2type=int
 
|param2type=int
 
|param2name=value
 
|param2name=value
|param2desc=
+
|param2desc=True if the creature can use the item, false otherwise
 
|returntype=void
 
|returntype=void
 
|returndesc=
 
|returndesc=
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. -->
to the EVENT_TYPE_ITEM_ONTEST_USABLE event.
 
  
 
<!-- == Remarks == -->
 
<!-- == Remarks == -->
Line 28: 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 functions]]
 +
[[Category:Items functions]]

Latest revision as of 23:59, 10 February 2010

Sets whether the creature satifies a retriction property. This is used only as a response to the EVENT_TYPE_ITEM_ONTEST_USABLE event.

void SetCanUseItem(
object oCreature,
int value
);
Parameters:
oCreature
Creature whose usability restriction is to be set
value
True if the creature can use the item, false otherwise
Returns:

Nothing.

Source:

script.ldf

Description