Jass documentation Database

JASS Documentation Database REFORGED

Results for the query "Player" as a "function"

The search keyword must be a single word (no spaces).

Function Player

Line: 3108
Location: common.j
Constant? yes
Type: native
Arguments: integer number
Returns: player


Extra spaces may have been removed from the original file to show the function in a comfortable way.
  1. constant native Player takes integer number returns player

Information about Player

Information contributed by City17
on April 07, 2022, 05:39:32 PM.
returns the instance of player based on ID number.

Common.j: IDs start from 0, e.g. Player(0) is red, 1 is blue etc. -> GetPlayerId
Blizzard.j (WorldEdit): IDs start with 1 -> GetConvertedPlayerId
This function always returns the same instance, does not create new objects.
If used with invalid values (<0 or above GetBJMaxPlayerSlots), crashed on older versions; returns null in Reforged.

See: GetPlayerId, GetBJMaxPlayers, GetBJMaxPlayerSlots, GetPlayerNeutralPassive, GetPlayerNeutralAggressive
Page loaded in 0.2205 seconds.
Vivir aprendiendo.co - A place for learning stuff, in Spanish   Chaos Realm - The world of Game modders and wc3 addicts   Diplo, a gaming community   Power of Corruption, an altered melee featuring Naga and Demon. Play it now!!!   WC3JASS.com - The JASS Vault + vJASS and Zinc   Jetcraft - A Starcraft II mod   WormTastic Clan (wTc)   Warcraft RESOURCES Reforged: Modelos, mapas, proyectos y mas...