CancelEvent Shared function

From Gothic 2 Online: Wiki
Jump to navigation Jump to search

This function was added in version: 0.0.0.0

NOTE! Events are special function, which are called when something specific happend. For example, when player join to the server, is called event named onPlayerJoin.

Function cancel current event.

Syntax

void cancelEvent()

Example

Server

addEventHandler("onPlayerHit",function(pid, kid, dmg, type)
{
	cancelEvent() // from now on, event is canceled, this means that players can't hurt themselves.
};

Related functions