Hello,
i am working on an enhanced AI mod for Civ4 BTS using the SDK. I figured out how i can sent the units to a destination - so currently AI units move to cities at the border
and do not stay idle somwhere far away, like they do with the default AI.
This works fine with the code below.
But now i want ot force some of the units to attack enemy cities. There is now mission i could find for this. And if i just move the units close to an enemy city it appears they behave unpredictable.
Any help on this would be highly appreciated.
i am working on an enhanced AI mod for Civ4 BTS using the SDK. I figured out how i can sent the units to a destination - so currently AI units move to cities at the border
and do not stay idle somwhere far away, like they do with the default AI.
This works fine with the code below.
Code:
unit->getGroup()->pushMission(MISSION_MOVE_TO, target->getX_INLINE(), target->getY_INLINE());
unit->getGroup()->setActivityType(ACTIVITY_MISSION);
But now i want ot force some of the units to attack enemy cities. There is now mission i could find for this. And if i just move the units close to an enemy city it appears they behave unpredictable.
Any help on this would be highly appreciated.