GetPlayerInstance Client function
Jump to navigation
Jump to search
This function was added in version: 0.0.4.1 |
Returns the instance of the player, for example "PC_HERO" for humans, or "GOBBO_GREEN" for green goblins.
Syntax
string getPlayerInstance(int id)
Required Arguments
- id: id of the player who's instance you want to get.
Example
function isHuman(id)
{
return getPlayerInstance(id) == "PC_HERO";
}