SpawnPlayer Server function

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

This function was added in version: 0.0.0

NOTE! Always when player join to the server is unspawned. This means that, is invisible for other players on every virutal world and also other players are invisible for him. After death player status is changed back to unspawned. To make player visible to others, you have to spawn him

Spawn player of specific id on the server.

Syntax

void spawnPlayer(int id)

Required Arguments

  • id: id of the player who you want to spawn.

Example

addEventHandler("onPlayerJoin",function(pid)
{
	spawnPlayer(pid);
});

Related functions

Server

Shared