private void CheckIfRoutePositionComputed(MySmallShipBot bot, MyEntity entityTarget) { // Wait for result (visible route position) if (bot.TryGetRoute(out m_followPosition)) { m_lookingForPosition = false; if (!m_followPosition.HasValue) { //PathNotFound = true; m_lookingForPath = bot.TryFindPath(entityTarget.WorldAABB.GetCenter()); // can't get unstuck; try to find path using waypoints } ResetStuck(bot); } }