CancelEvent Shared function

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

This function was added in version:

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.


void cancelEvent()



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

Related functions