Description ​
Removes a callback for an event
Arguments ​
string - The event name (See events documentation)string - Unique identifier for the callback to remove
Returns ​
number - The number of event callbacks which were removed
Example ​
msc
using Event;
// Removes the "commands" listener from the "ConsoleCommand" event.
// This means the function will not be called anymore when the event happens.
// If this makes no sense, look at the Event.AddListener example first.
Event.RemoveListener("ConsoleCommand", "commands");