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

Prototype[edit | edit source]

[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[edit | edit source]

Community content is available under CC-BY-SA unless otherwise noted.