• Pure

    Returns the instance of player based on ID number.

    This function always returns the same instance, does not create new objects. If used with invalid values (below 0 or above GetBJMaxPlayerSlots), returns null in Reforged, crashed on Classic.

    Parameters

    • number: number

    Returns Player

    Note

    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.

    Note

    See: GetPlayerId, GetBJMaxPlayers, GetBJMaxPlayerSlots, GetPlayerNeutralPassive, GetPlayerNeutralAggressive.

    Bug

    In old versions (which?) crashes the game if used with wrong values, that is values greather than 15 or values lower than 0.

Generated using TypeDoc