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!

GameObjectManager.GetObjectsOfType<T>() range?

Wheredidigo

Community Developer
Joined
Dec 15, 2013
Messages
417
Mastahg,

What is the default range of objects that are returned by GameObjectManager.GetObjectsOfType<T>()? Will it bring back all the Objects of type T in the entire zone? Or will it bring back objects within "X" range...and if so...what is that "X" range?

Thanks
 
Mastahg,

What is the default range of objects that are returned by GameObjectManager.GetObjectsOfType<T>()? Will it bring back all the Objects of type T in the entire zone? Or will it bring back objects within "X" range...and if so...what is that "X" range?

Thanks
Shameless bump in hopes of an answer from Mastahg...
 
Mastahg,

What is the default range of objects that are returned by GameObjectManager.GetObjectsOfType<T>()? Will it bring back all the Objects of type T in the entire zone? Or will it bring back objects within "X" range...and if so...what is that "X" range?

Thanks

its whatever data is available to the client. It's not like we apply some sort of filter to that data other then if its of the correct object type. It wont be the entire zone thats for sure. This is something you could have easily tested your self.

var distance = float.MinValue;
foreach(var obj in GameObjectManager.GameObjectz)
{
var dist = obj.Distance(Core.Player.Location);
if (dist > distance)
{
distance = dist;
}
}
Log(distance);
 
its whatever data is available to the client. It's not like we apply some sort of filter to that data other then if its of the correct object type. It wont be the entire zone thats for sure. This is something you could have easily tested your self.

var distance = float.MinValue;
foreach(var obj in GameObjectManager.GameObjectz)
{
var dist = obj.Distance(Core.Player.Location);
if (dist > distance)
{
distance = dist;
}
}
Log(distance);

Thanks. I just wanted to make sure that there wasn't any filtering that you added in yourself. IE: The game can pick up objects at 150 yalms away, but that method only picks up things within 100 yalms. And while yes, I could have written that code to see what the max distance object that got picked up was, that still would not have told me if you put in a hard coded max range to try and prevent someone from looking at the entire zone at once.

Thanks for the answer though, it's good to know that you don't limit us.
 
Back
Top