City17
4 years
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. -> [jassdoc]GetPlayerId[/jassdoc]
Blizzard.j (WorldEdit): IDs start with 1 -> [jassdoc]GetConvertedPlayerId[/jassdoc]
This function always returns the same instance, does not create new objects.
If used with invalid values (<0 or above [jassdoc]GetBJMaxPlayerSlots[/jassdoc]), crashed on older versions; returns null in Reforged.
See: [jassdoc]GetPlayerId[/jassdoc], [jassdoc]GetBJMaxPlayers[/jassdoc], [jassdoc]GetBJMaxPlayerSlots[/jassdoc], [jassdoc]GetPlayerNeutralPassive[/jassdoc], [jassdoc]GetPlayerNeutralAggressive[/jassdoc]
Common.j: IDs start from 0, e.g. Player(0) is red, 1 is blue etc. -> [jassdoc]GetPlayerId[/jassdoc]
Blizzard.j (WorldEdit): IDs start with 1 -> [jassdoc]GetConvertedPlayerId[/jassdoc]
This function always returns the same instance, does not create new objects.
If used with invalid values (<0 or above [jassdoc]GetBJMaxPlayerSlots[/jassdoc]), crashed on older versions; returns null in Reforged.
See: [jassdoc]GetPlayerId[/jassdoc], [jassdoc]GetBJMaxPlayers[/jassdoc], [jassdoc]GetBJMaxPlayerSlots[/jassdoc], [jassdoc]GetPlayerNeutralPassive[/jassdoc], [jassdoc]GetPlayerNeutralAggressive[/jassdoc]