ForceSetLeaderboardBJ

Parameters
lb leaderboard
toForce force
return type
nothing
Source code
function ForceSetLeaderboardBJ takes leaderboard lb, force toForce returns nothing
    local integer index
    local player  indexPlayer

    set index = 0
    loop
        set indexPlayer = Player(index)
        if IsPlayerInForce(indexPlayer, toForce) then
            call PlayerSetLeaderboard(indexPlayer, lb)
        endif
        set index = index + 1
        exitwhen index == bj_MAX_PLAYERS
    endloop
endfunction
Source
Blizzard.j
wc3modding.com
ForceSetLeaderboardBJ