GetPlayerName Client function

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

This function was added in version: 0.0.0

Returns the nickname of the player.

Syntax

string getPlayerName(int id)

Required Arguments

  • id: id of the player who's name you want to get.

Returns

  • the name if the specified player.

Example

function isNameTooLong(id)
{
    if(getPlayerName(id).len() > 20)
    {
        return true;
    }

    return false;
}

Related functions

Server

Shared