LeaderboardGetIndexedPlayerBJ
- Parameters
-
position integer
lb leaderboard
- comment
- patch
1.07
- Source
- Blizzard.j
- return type
player
- Source code
function LeaderboardGetIndexedPlayerBJ takes integer position, leaderboard lb returns player local integer index local player indexPlayer set index = 0 loop set indexPlayer = Player(index) if (LeaderboardGetPlayerIndex(lb, indexPlayer) == position - 1) then return indexPlayer endif set index = index + 1 exitwhen index == bj_MAX_PLAYERS endloop return Player(PLAYER_NEUTRAL_PASSIVE) endfunction