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>()
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!
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.
Even when the object is obviously 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?
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.