Results 1 to 2 of 2

Thread: GetBotNames nolonger automatically randomize?

  1. #1

    GetBotNames nolonger automatically randomize?

    I'm using GetbotNames with a test code i found at https://dev.dota2.com/showthread.php?t=283868 but they don't randomize, it's just both team using the first 5 everytime.

    I'm also having trouble, while never touching much code at all before, to get it to do so.

    Any help?

  2. #2
    Basic Member
    Join Date
    Dec 2016
    Posts
    726
    Below works for me fine. Looks like they added positional names.
    Code:
    function GetBotNames()
        if ( GetTeam() == TEAM_RADIANT ) then
            return {
                [1] = "5",
                [2] = "4",
                [3] = "3",
                [4] = "2",
                [5] = "1",
            }
        elseif ( GetTeam() == TEAM_DIRE ) then
            return {
                [1] = "10",
                [2] = "9",
                [3] = "8",
                [4] = "7",
                [5] = "6",
            }
        end
    end

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •