• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • MoveTo / Async / Coroutines -- Shameful request for help

    Discussion in 'Wildbuddy Developers' started by Deathdisguise, Mar 9, 2015.

    1. Deathdisguise

      Deathdisguise Community Developer

      Joined:
      Mar 7, 2015
      Messages:
      678
      Likes Received:
      6
      Trophy Points:
      0
      Howdy folks,

      I primarily dabble with plugins and the sort, and am quite familiar with Honorbuddy's implementation, however I've found myself getting my butt kicked with the async tasks when attempting to create MoveTo and MoveWithin methods when playing with a simple BotBase.. (haha)

      The bane of my existence is implementing coroutines, and escaping the Pulse method, apparently?

      Code:
      This function can only be used from within a coroutine at Buddy.Coroutines.Coroutine.
      So I was wondering if anyone could provide a short example of how to MoveTo/MoveWithin an Actor.Position using coroutines, and forever save me from the above appearing? ;)


      EDIT: This post from the RB forums sufficiently put me in the right direction ;)

      https://www.thebuddyforum.com/rebor...um/192348-quick-coroutine-plugin-example.html
       
      Last edited: Mar 9, 2015

    Share This Page