ViterboKnight
King
- Joined
- Feb 6, 2006
- Messages
- 796
I've modified forts so that, with the proper units inside, they can bombard enemies in close tiles.
Now, I need a way to teach the AI how to avoid them during an invasion.
I've found the method AI_getPlotDanger, and I've tried to modify it to take into account those forts. However, it doesn't seem to work; his unit fortifies just in front of a fort, and stays there to keep being bombarded.
Any idea?
Thanks!
Now, I need a way to teach the AI how to avoid them during an invasion.
I've found the method AI_getPlotDanger, and I've tried to modify it to take into account those forts. However, it doesn't seem to work; his unit fortifies just in front of a fort, and stays there to keep being bombarded.
Any idea?
Thanks!