Artek 3 Posted September 22, 2020 Share Posted September 22, 2020 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 More sharing options...
Droidz 2738 Posted September 22, 2020 Share Posted September 22, 2020 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 Link to comment https://wrobot.eu/forums/topic/12535-how-does-hostile-unit-near-target-work/#findComment-60025 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