• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • WoWUnit detection problem

    Discussion in 'Archives' started by swordofdawn, Mar 10, 2011.

    1. swordofdawn

      swordofdawn New Member

      Joined:
      Feb 14, 2011
      Messages:
      6
      Likes Received:
      0
      Trophy Points:
      0
      Ok guys, i am trying to make a custom plugin that tries to detect some WoWUnits with their npc ID.
      I have found out that the distance at which my plug-in can detect it depends on the range at which blizz allows these NPc's to become visible. So the problem is that my NPC's are so small that my char flies relatively close and does not detect them. Atm i have to approach like 20 yards for them to become detectable. Any solution?

      The syntax i use is List<WoWUnit> objList = ObjectManager.GetObjectsOfType<WoWUnit>()
       
    2. Narayan

      Narayan Member

      Joined:
      Oct 26, 2010
      Messages:
      405
      Likes Received:
      2
      Trophy Points:
      18
      AFAIK the range the WoW see's is 40 yards so HB can't see any further than that either. I think... i'm sure someone will correct me if im wrong!
       
    3. Rock

      Rock New Member

      Joined:
      Mar 8, 2010
      Messages:
      227
      Likes Received:
      1
      Trophy Points:
      0
      Is that for overal? During GB2 Usage it detects, for example, herbs 100+ Yards away..
       
    4. CodenameG

      CodenameG New Member

      Joined:
      Jan 15, 2010
      Messages:
      38,369
      Likes Received:
      231
      Trophy Points:
      0
      it varies, the objectmanger gets objects as they wow brings them up, sometimes wow bring them up before they are rendered. it really just depends on wow, and network lag, and your client itself when these objects get loaded into memory as actual WoWUnits, or WoWObjects. it depends on a lot of factors, its not just a set 20 yards. or whatever.
       
    5. swordofdawn

      swordofdawn New Member

      Joined:
      Feb 14, 2011
      Messages:
      6
      Likes Received:
      0
      Trophy Points:
      0
      Even when the object is obviously :p visible, and i am standing 25 yards away from it, my plug-in wont pick it up. If i manually move my char to 20 yards or so, the plugin activates and picks it up. I am thinking of model editing the npc to a much bigger npc. What do you think ?

      I did some more testing with the lvl 1 critters in Stormwind, that are the same size as the Mysterious Camel Figurines in Uldum that i am making the plug-in for. No matter how far away i am from the critters, my plug-in detects and picks them up. But for some reason the figurines cant be detected if further than 20 yards away. Any thoughts?
       
      Last edited: Mar 10, 2011
    6. highvoltz

      highvoltz Well-Known Member

      Joined:
      Mar 22, 2010
      Messages:
      1,729
      Likes Received:
      141
      Trophy Points:
      63
      If you're looping the thread or hb isn't actually running (you're executing from a plugin's button press) then you'll need to manually update the objectmanager with ObjectManager.Update();
      Most objects are capped at 100 unit range but there's a few stuff that's visible at longer distances.
       

    Share This Page