79135 4 Posted March 20, 2018 Share Posted March 20, 2018 How do it in quester profile: Is complete condition if another player near my char? Link to comment https://wrobot.eu/forums/topic/8941-is-complete-condition/ Share on other sites More sharing options...
Droidz 2738 Posted March 21, 2018 Share Posted March 21, 2018 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 More sharing options...
79135 4 Posted March 21, 2018 Author Share Posted March 21, 2018 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now