Jump to content

Recommended Posts

When i Set it to 1, it executes even when there is NO additional unit next to my target, when i set it to 2, it exectuse ONLY when there are at least 2 additional units near by, is it bugged?
Condition value is Bigger or equal

Link to comment
https://wrobot.eu/forums/topic/12535-how-does-hostile-unit-near-target-work/
Share on other sites

Hello, in fightclass this option count target (it doesn't make sense but I won't change it to avoid breaking the existing fightclass)

Use this c# condition to don't count target:

ObjectManager.GetWoWUnitHostile().Count(u => u.Position.DistanceTo(ObjectManager.Target.Position) <= 10 && !u.IsMyTarget && u.IsAttackable) <= 3

replace 10 by the range, and 3 by number of unit

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