RegisterEventListener

From Dragon Age Toolset Wiki
Revision as of 02:40, 29 July 2009 by Sunjammer (Talk | contribs) (Generated by Sunjammer's Dragon Age Script Paser)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This page was generated by Sunjammer's Dragon Age Script Parser.

The parser was able to extract and/or match all the information required, however it has flagged this page as containing one or more joins. A join occurs when the parser encounters a single line entry (such as parameter descriptions or remarks) which has been split over multiple lines. The parser joins these lines together to prevent the information being omitted, however any original formatting will have been lost.

This page must be reviewed by a knowledgeable scripter as it will probably require updating. If the join occurred in a parameter description it will probably be necessary to move the additional information to the Description section below. Once identified, the issue in the source file should be reported to BioWare.

Please remove the {{Generated with joins}} tag once the page has been corrected.

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

UnregisterEventLister, GetEventTarget