GetPlayerInstance Client function

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

This function was added in version:

Returns the instance of the player, for example "PC_HERO" for humans, or "GOBBO_GREEN" for green goblins.


string getPlayerInstance(int id)

Required Arguments

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


function isHuman(id)
    return getPlayerInstance(id) == "PC_HERO";

Related functions

Template:CPlayer Function