NWN2Wiki
Register
Advertisement

SetEventHandler allows any script to be bound to an exisiting event for a given object.

Prototype[]

[1]

///////////////////////////////////////////////////////////////////////////////
// SetEventHandler
///////////////////////////////////////////////////////////////////////////////
// Created By: Brock Heinz - OEI
// Created On: 12/20/05
//
// Description: These commands will allow you to bind any script to the 
//              to an exisiting event for a given object.
// Arguments:    
//  oObject -  The object to which you want to bind a new script
//  iEventID - The event ID which you are binding the script to.  
//  sScriptName - The name of the script that you want to bind to the event. 
//              Note that it is valid to pass "" to have this creature ignore
//              the event.
///////////////////////////////////////////////////////////////////////////////
void SetEventHandler( object oObject, int iEventID, string sScriptName );

See also[]

Advertisement