What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

Plugin Help: Targets

Canax

New Member
Joined
Dec 19, 2010
Messages
12
Reaction score
0
I am very new to honor buddy, and this is my first attempt at coding anything for it.

I am trying to get a list of all target-able things in view.

I know there is
Styx.Logic.Targeting.Instance.TargetList

However, this comes with what seems to be deliberate shortcomings, and while there kinda seems like there may be the possibility of extending the returned list, i cant help but feel this is the wrong way - and possibly cant do what i want.

TargetList, as i have it now, just returns the best 4 or 5 mobs, and during combat only returns the mobs your fighting.

I hate to feel like im being an idiot, but i got a feeling im missing something obvious.

Ive also noticed the ObjectList is protected. While this is easy to get around, why is it you wouldn't want plugin makers accessing this?

Any help would be great. Thanks.
 
I'm not a developer for HB myself, so I don't really know what I'm doing here. But there seems to be a number of properties in the targeting class, including MaxTargets.
 
example how to find mailboxes:
PHP:
ObjectManager.Update();
List gObjList = ObjectManager.GetObjectsOfType();
List mailboxList = new List();
foreach (WoWGameObject o in gObjList)
{
    if (o.SubType == WoWGameObjectType.Mailbox)
        mailboxList.Add(o);
}
</wowgameobject></wowgameobject></wowgameobject></wowgameobject>
 
Back
Top