kaihaider
Community Developer
- Joined
- May 18, 2010
- Messages
- 1,325
Code:
public static GameObject FindNavigableTarget(IEnumerable<GameObject> targets) {
GameObject target = null;
foreach (var item in targets)
{
if (target != null) continue;
var navtarget = Yield(item).Select(unit => new CanFullyNavigateTarget { Id = unit.ObjectId, Position = unit.Location });
var paths = ff14bot.Navigation.Navigator.NavigationProvider.CanFullyNavigateTo(navtarget);
if (paths!=null) target = item;
}
return target;
}
Can you please enlighten me on why this breaks the bot and how I can use it to check navigation to objects or vectors? :S
and even though it calls it once and I don't see errors...it seems to cause weird things >_>
edit:
maybe I just needed to restart arr, after 4 screwed up tests in a row, everything seems to be running fine? T_T
Can you tell me if I'm using this correctly though?
Last edited: