79135 4 Posted August 28, 2018 Share Posted August 28, 2018 Hello, How to check what other player attack me? I need command like it "ObjectManager.GetUnitAttackPlayer().Count(u => u.GetDistance < 30 && u.OtherPlayer (Idk how right to write) ) > 0". Link to comment https://wrobot.eu/forums/topic/10009-player-attack-player/ Share on other sites More sharing options...
Matenia 628 Posted August 29, 2018 Share Posted August 29, 2018 u.Type != WoWObjectType.Player Keep in mind, this won't actually do anything, players aren't listed in GetUnitAttackPlayer (as far as I know). So just iterate all players and filter for hostile players that are targeting you Link to comment https://wrobot.eu/forums/topic/10009-player-attack-player/#findComment-46938 Share on other sites More sharing options...
79135 4 Posted August 29, 2018 Author Share Posted August 29, 2018 2 hours ago, Matenia said: u.Type != WoWObjectType.Player Keep in mind, this won't actually do anything, players aren't listed in GetUnitAttackPlayer (as far as I know). So just iterate all players and filter for hostile players that are targeting you Thank you). But mb at the bot have another command for "GetAnotherPlayerAttackPlayer"? Link to comment https://wrobot.eu/forums/topic/10009-player-attack-player/#findComment-46940 Share on other sites More sharing options...
Matenia 628 Posted August 29, 2018 Share Posted August 29, 2018 2 hours ago, 79135 said: Thank you). But mb at the bot have another command for "GetAnotherPlayerAttackPlayer"? No Link to comment https://wrobot.eu/forums/topic/10009-player-attack-player/#findComment-46942 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