Jump to content

Is complete condition


79135

Recommended Posts

Hello, for random player or specific player?

To check if random player is near (less than 50y):

return wManager.Wow.ObjectManager.ObjectManager.GetObjectWoWPlayer().Any(p => p.IsValid && p.GetDistance2D < 50);

To check if specific player is near:

return wManager.Wow.ObjectManager.ObjectManager.GetObjectWoWPlayer().Any(p => p.IsValid && p.GetDistance2D < 50 && p.Name == "Player Name");

 

Link to comment
Share on other sites

2 hours ago, Droidz said:

Hello, for random player or specific player?

To check if random player is near (less than 50y):


return wManager.Wow.ObjectManager.ObjectManager.GetObjectWoWPlayer().Any(p => p.IsValid && p.GetDistance2D < 50);

To check if specific player is near:


return wManager.Wow.ObjectManager.ObjectManager.GetObjectWoWPlayer().Any(p => p.IsValid && p.GetDistance2D < 50 && p.Name == "Player Name");

 

Thanks a lot!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...