Warcraft 3 documentation
vJASS & Zinc Documentation
For the latest documentation about how it works vJASS and Zinc language layers for Warcraft III, please follow these links:
Jasshelper documentation - Zinc documentation - WC3 Optimizer documentation
This topic is the discussión abut the function Player. You can see all the information about this function keyword HERE.

[functions] Player No New Posts Jassdoc

Started by
City17

0 Members and 1 Guest are viewing this topic.

[functions] Player
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
« Last Edit: April 17, 2022, 03:11:25 PM by City17 »



 

Started by moyack

Replies: 3
Views: 4233
Jassdoc

Started by Magtheridon96

Replies: 15
Views: 29850
Codes & Snippets

Started by Jedi

Replies: 5
Views: 14820
General Jass Discussion

Started by moyack

Replies: 12
Views: 26800
Codes & Snippets

Started by Chaosy

Replies: 8
Views: 13166
Tutorial Zone
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...