• Returns the player name.

    Example (Lua):

    -- assuming you play as player Red
    local name = GetPlayerName(Player(0)) --> your player name as text

    If the player is not present in the game or is one of the internal players, returns localized string + one-based player number (WorldEdit-like):

    local me = GetPlayerName( Player(0) ) --> your player name as text
    local np = GetPlayerName( Player(PLAYER_NEUTRAL_PASSIVE) ) --> "Player 28"

    Parameters

    Returns string

Generated using TypeDoc