Skip to main content

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:

NameTypeDescription
FuncionfunctionListener function.

Usage

---@type Event
local event;

---@type function
local Funcion;


event.AddListener(Funcion)