SetPlayerName Client function

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

This function was added in version: 0.0.0

Changes the nickname of the player.

Syntax

string setPlayerName(int id, string name)

Required Arguments

  • id: id of the player who's name you want to change.
  • name: new nickname.

Example

function setPlayerAFK(id)
{
    setPlayerName(id, getPlayerName(id) + " (AFK)");
}

Related functions

Server

Shared