Page 1 of 1

AI hubs and connections

Posted: Sat Nov 14, 2009 9:22 am
by biohazard
Is it possible to make them more inclined to use certain hubs over others? On my map, the fighting tends to be at one point on the map, and hardly any units take other routes despite the fact that they are the shortest path between some CPs.

Re: AI hubs and conections

Posted: Sat Nov 14, 2009 10:05 am
by mswf
Did you maybe accidently placed a barrier over the path? Also, you may want to make sure that your hubs are wide enough (that's (a bit of a workaround) way to let more AI go there, it should work fine if you've also placed barriers correctly.

Creating preferred pathing for AI

Posted: Sat Nov 14, 2009 10:14 am
by AceMastermind
biohazard wrote:Is it possible to make them more inclined to use certain hubs over others?
ZeroEditor_guide.doc wrote:PATH PLANNING AND CONNECTIVITY GRAPHS
...
...
AI NPC MOVEMENT
...Filters can be applied to connections and hubs that remove them from an AI NPC’s destination selection process. Connections between hubs can be given Weights in order to create less favorable connections for an AI NPC to choose from when selecting connections as possible paths. By changing the weight of hubs and connections, preferred paths for AI NPC to follow can be created.
...
...
...
WEIGHTS
By default each connection from a starting hub to a destination hub has a weight of 100. To change the weight of a connection in the AI’s selection process select Edit Weights from the menu and click on a starting hub. The connection will change color to yellow and when the mouse is moved outside the hub a line will be attached to the cursor until a destination hub is selected by clicking on it with the left mouse button. To delete an unattached path weight, click the right mouse button at any time. Once attached to a destination hub, the weight can be changed by entering a new weight in the Weight input field on the menu. WEIGHTS allow for greater control over which connections are used by AI as they move towards their final destination hub next to a command post.
...
...