HolyLib Wiki

GetListeners

  number gameevent.GetListeners( string eventName = nil )

Description

Returns the number of Listeners a specific gameevent has.
If not given a eventName, it will return a table containing all events and listener numbers.

Arguments

1string eventName = nil
The eventName to return the listener count for. If left nil, it will return a table with all events.

Returns

1number listenerCount
The number of listeners. Will be a table if not given a eventName