EventValue 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 changes event value.

Syntax

void eventValue(int value)

Required Arguments

  • value: The new value which event will receive.

Example

Server

addEventHandler("onPlayerHit",function(pid, kid, dmg, type)
{
	eventValue(-1) // from now on, every given damage to player will be equal -1. Player will loose one health point.
};

Related functions