Results 1 to 5 of 5

Thread: Anyone got SetActionQueueing() working?

  1. #1
    Basic Member
    Join Date
    Mar 2012
    Posts
    2,018

    Anyone got SetActionQueueing() working?

    So I tried:

    Code:
    			Bot:SetActionQueueing(true);
    			Bot:Action_MoveToLocation(GetTower(GetTeam(), Towers.TOWER_BASE_1):GetLocation() - RandomVector(10));
    			Bot:Action_MoveToLocation(Bot.instance.HomeLocation);
    (where HomeLocation is the home base)

    But my bot just sits still. How do I queue the movement or any other action?
    Explanations on the normal, high and very high brackets in replays: here, here & here
    Why maphacks won't work in D2: here

  2. #2
    Basic Member
    Join Date
    Dec 2016
    Posts
    731
    Where do you do that code?

    In my bot's Think() I do:
    Code:
    if bot:HasQueuedAction() then
                return
            end
    This prevents the Queue from being over-written and some other action from modifying behavior. Note, I do a complete Think() over-write so my usecase might be different.

    Chances are you are just infinitely queueing those actions over and over and over..

  3. #3
    Basic Member
    Join Date
    Oct 2016
    Posts
    247
    these commands can be used to keep a hero from canceling the usage of an ability?
    eg. spirit breaker using charge, then breaking away straight away.

  4. #4
    Basic Member
    Join Date
    Dec 2016
    Posts
    731
    Quote Originally Posted by Yavimaya View Post
    these commands can be used to keep a hero from canceling the usage of an ability?
    eg. spirit breaker using charge, then breaking away straight away.
    Yes, providing you actually allow the actions you have queued to execute instead of infinitely appending to the list.

  5. #5
    Basic Member
    Join Date
    Oct 2016
    Posts
    247
    ok thanks, ill look into it.

Posting Permissions

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