Results 1 to 7 of 7

Thread: Searching for fellow programmers

  1. #1
    Basic Member
    Join Date
    Dec 2016
    Posts
    4

    Searching for fellow programmers

    Hello everyone,
    I am a firstyear student at TU Delft and I know the basics of programming in Java and Python. I'm starting out in LUA now. I got 3500 hours in Dota 2, and I'm searching for some people to program a bot with. This is meant for the long term, so not just for a week or so.
    I would be so happy if there is anyone out there that knows LUA, and that can help me on my way to a bot or even work together to get more bots.
    Thanks in advance!
    Contact: http://steamcommunity.com/profiles/76561198138827633/

  2. #2
    Basic Member
    Join Date
    Dec 2016
    Posts
    76
    I started learning lua yesterday and I hope my little demo may help you.
    https://github.com/lenLRX/dota2LinaBot

  3. #3

  4. #4

  5. #5
    @lenlrx
    I don't know how to Create a object of Location so I borrow one from GetLocation()
    Code:
    Vector(-7000, -7000)
    works for me when issuing move commands.

    There's also distance functions built in (unit is npcBot or creep or hero, location is Vector):
    GetUnitToUnitDistance
    GetUnitToLocationDistance

    Not sure if those are "as the crow flies" like yours or if they do pathing.

    Code:
    npcBot:Action_AttackUnit(Attacking_creep, true);
    Do you know what that boolean does?

  6. #6
    Valve Developer
    Join Date
    Sep 2011
    Posts
    1,704
    That boolean indicates whether the unit should attack just once (true) and then drop back to idle, or keep attacking (false).

    Parameters and return values will be coming to the wiki soon.

  7. #7
    Basic Member
    Join Date
    Dec 2016
    Posts
    76
    great!

Posting Permissions

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