Difference between revisions of "EVENT TYPE ITEM ONTEST USABLE"

From Dragon Age Toolset Wiki
Jump to: navigation, search
(Created page with '{{needs review}} {{event |sourcefile=script.ldf |when= |from= |to= }} ITEM_ONTEST_USABLE')
 
m (remove redundant category)
 
(4 intermediate revisions by 2 users not shown)
Line 4: Line 4:
 
|when=
 
|when=
 
|from=
 
|from=
|to=
+
|to=creatures
 +
|tocategory1=creature
 +
|sortkey=ITEM_ONTEST_USABLE
 +
|object0name=oItem
 +
|object1name=oCreator
 +
|int0name=nRestriction
 +
|int0desc=The item property that defines a restriction
 
}}
 
}}
  
[[Category:Event types|ITEM_ONTEST_USABLE]]
+
See also:
 +
 
 +
[[SetCanUseItem]], [[CanUseItem]]

Latest revision as of 01:04, 12 February 2010

The documentation on this page is incomplete, obsolete, or otherwise in need of a thorough review. The current content may provide a good starting point for this, but do not rely on its accuracy when using it to design content.

Source:
script.ldf
Sent when:
Sent from:
Sent to:
creatures
Parameters:

Usage

case EVENT_TYPE_ITEM_ONTEST_USABLE:
{
int nRestriction = GetEventInteger(ev, 0); // The item property that defines a restriction
object oItem = GetEventObject(ev, 0); //
object oCreator = GetEventObject(ev, 1); //

// insert event-handling code here

break;
}

See also:

SetCanUseItem, CanUseItem