Jump to content

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
https://wrobot.eu/forums/topic/8941-is-complete-condition/#findComment-41550
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
https://wrobot.eu/forums/topic/8941-is-complete-condition/#findComment-41554
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...