private WoWPlayer GetClosestFriendly()
{
return (from unit in ObjectManager.GetObjectsOfType<WoWPlayer>(true, true)
orderby unit.Distance ascending
where !unit.Dead
where !unit.IsGhost
where unit.IsFriendly
select unit).FirstOrDefault();
}
private WoWPlayer[] GetClosestFriendly()
{
return ObjectManager.GetObjectsOfType(true, false)
.Where(player =>
!player.Dead &&
!player.IsGhost &&
player.IsFriendly)
.OrderBy(player => player.Distance)
.ToArray();
}
Code:<wowplayer>... select unit).Second(); }
Can I do something like this? Select the second from the list?
And howto untarget a target?
</wowplayer>