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

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Monsters in Proximity

Anyone figured out how to write a code to detect monsters in Proximity?

Query the GameObjectManager with the restrictions that you are looking for. Plenty of Combat Routines have code that does this that you can look through.

From Magitek:

Code:
target =
                            (from unit in GameObjectManager.GetObjectsOfType<BattleCharacter>()
                             where unit.Location.Distance(Core.Player.Location) < Magitek.WindowSettings.TargetDistance
                             where unit.ObjectId == (selection.GameObject as BattleCharacter).CurrentTargetId
                             select unit).FirstOrDefault();
 
Back
Top