RegisterEventListener

From Dragon Age Toolset Wiki
Jump to: navigation, search

Registers an object to listen to the specified event type on the target object.

void RegisterEventListener(
object oTarget,
object oListener,
int nEventType
);
Parameters:
oTarget
The object to listen to
oListener
The object to register as a listener
nEventType
The type of event to listen for
Returns:

Nothing.

Source:

script.ldf

Description

Registers an object to listen to the specified event type on the target object. When an object is registered as a listener for an event type, whenever the target object receives an event of that type a listener event will be fired to the listening object with the event data that the listening object can then process.

Remarks

It is not possible to listen for other listener events, or for event types other than the ones defined in the scripting language.


See also

UnregisterEventListener, GetEventTarget