September 4, 20232 yr hi all. as the title says, how do i check if target or object is 'IsTaggedByOther' or if target is being attacked by party/raid member? Note: target doesn't attack or target at all like Kinetic Bomb. Thank you!
September 5, 20232 yr hello, try something like this, note this is pudo code (Made from my phone). public List<WoWUnit> GetUnitsAttackingPartyMembers() { var partyMembers = Party.GetParty(); var units = ObjectManager.GetObjectWoWUnit(); return units .Where(x => x.IsAlive && x.IsAttackable && (x.InCombat || x.InCombatFlagOnly) && partyMembers.Any(p => x.TargetObject?.Target == p.Guid)) .ToList(); }
September 6, 20232 yr Author On 9/5/2023 at 5:14 PM, Nax said: hello, try something like this, note this is pudo code (Made from my phone). public List<WoWUnit> GetUnitsAttackingPartyMembers() { var partyMembers = Party.GetParty(); var units = ObjectManager.GetObjectWoWUnit(); return units .Where(x => x.IsAlive && x.IsAttackable && (x.InCombat || x.InCombatFlagOnly) && partyMembers.Any(p => x.TargetObject?.Target == p.Guid)) .ToList(); } this checks the units attacking partymembers, it should be the other way around. i want to check if mobId 12345 is being targetted or attacked by party members.
September 6, 20232 yr public List<WoWPlayer> GetUnitsAttackingPartyMembers(WoWUnit p) { return Party.GetParty().Where(x => x.TargetObject?.Target == p.Guid).ToList(); }
September 8, 20232 yr Author On 9/7/2023 at 5:20 AM, Nax said: public List<WoWPlayer> GetUnitsAttackingPartyMembers(WoWUnit p) { return Party.GetParty().Where(x => x.TargetObject?.Target == p.Guid).ToList(); } Thank you for the help! May I also ask please how to get my character to face it's target? i am trying to make a plug.in that it will stay in a specific position i set and just face the target and use range skills. i am using wrotation and if i set "Manage character movement...." it moves towards it's target. and if wrotation if off, it doesn't face it's target hence not using any range skills. Thank you.
September 10, 20232 yr Simple google search : https://www.google.com/search?q=wrobot+Face+target&rlz=1C1CHBF_enUS1022US1022&oq=wrobot+Face+target&aqs=chrome..69i57.3199j0j7&sourceid=chrome&ie=UTF-8
September 11, 20232 yr Author 22 hours ago, Nax said: Simple google search : https://www.google.com/search?q=wrobot+Face+target&rlz=1C1CHBF_enUS1022US1022&oq=wrobot+Face+target&aqs=chrome..69i57.3199j0j7&sourceid=chrome&ie=UTF-8 awesome will try this out! my bad, should've used the search first.
Create an account or sign in to comment