Gaming
 

EventActivateItem

From NWNWiki

EventActivateItem() is a NWScript function that creates an OnActivateItem event to be sent to the module, indicating that the specified item has been activated. This function only creates the event; to actually trigger the event, this function's return value must be passed to SignalEvent().

[edit] Definition

event EventActivateItem(object oItem, location lTarget, object oTarget=OBJECT_INVALID)

object oItem
Specifies the activated item.
location lTarget
Specifies the location of the target of the activation.
object oTarget
Specifies the object targeted by the activation, if there is one.

The item activator is specified as the object that passes the return value of this function to SignalEvent().