Engine.PreventDefault
Jump to navigation
Jump to search
Function
function bool Engine.PreventDefault();
Description
This function prevents the default handling of an event (only if the event supports this functionality).
Returns
The function returns true if the event was successfully cancelled, false otherwise.
Example
// Prevent chat.
//
Engine.AddEventHandler("OnPlayerChat",function(player,message){
Engine.PreventDefault();
});
Notes
This function should only be called from within an event handler callback.