Jump to content

Player attack player


79135

Recommended Posts

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
Share on other sites

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
Share on other sites

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
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...