Difference between revisions of "RegisterEventListener"
From Dragon Age Toolset Wiki
(Generated by Sunjammer's Dragon Age Script Paser) |
BryanDerksen (Talk | contribs) m (fix link) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | |||
{{dafunction | {{dafunction | ||
|name=RegisterEventListener | |name=RegisterEventListener | ||
Line 34: | Line 33: | ||
== See also == | == See also == | ||
<!-- This section contains links to articles, functions or constant groups. --> | <!-- This section contains links to articles, functions or constant groups. --> | ||
− | [[ | + | [[UnregisterEventListener]], [[GetEventTarget]] |
[[Category: Event functions]] | [[Category: Event functions]] |
Latest revision as of 18:03, 24 February 2010
Registers an object to listen to the specified event type on the target object.
- 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.