Event.AddListener(function Funcion)
Adds a non-permanent listener to event handler. The added listener will be invoked with the rest of the listeners when the invoke function is called. The listener function cannot have any parameters.
Parameters:
Name | Type | Description |
---|---|---|
Funcion | function | Listener function. |
Usage
---@type Event
local event;
---@type function
local Funcion;
event.AddListener(Funcion)