-
Notifications
You must be signed in to change notification settings - Fork 1
Event cancel
DizzasTeR edited this page Nov 1, 2020
·
1 revision
Cancels an event from further signaling and possibly stop its effect (if supported)
bool Event.cancel()- None
bool - Always returns true
Event.bind("onServerInit", function()
Logger.info("First!")
Event.cancel() -- Cancel this event from going further
end)
-- This will not be triggered now
Event.bind("onServerInit", function()
Logger.info("Second!")
end)Event.bind("onPlayerChat", function()
Event.cancel() -- Chat won't be sent
end)