Gaming
 

GetEventHandler

From NWN2Wiki

GetEventHandler retrieves the name of a script bound to a given event ID.

[edit] Prototype

[1]

///////////////////////////////////////////////////////////////////////////////
// GetEventHandler
///////////////////////////////////////////////////////////////////////////////
// Created By: Brock Heinz - OEI
// Created On: 12/20/05
//
// Description: Retrieves the name of a script bound to a given event ID
// Arguments
//  oObject -  The object to which you want to bind a new script
//  iEventID - The event ID which you are binding the script to.  
//
// Returns:	Returns a string with the script name which the object has bound
//          to the event. This will be empty if the creature or event ID is 
//          invalid. 
///////////////////////////////////////////////////////////////////////////////
string GetEventHandler( object oObject, int iEventID );

[edit] See also