AI hubs and connections

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
biohazard
Command Sergeant Major
Command Sergeant Major
Posts: 268
Joined: Sun Oct 18, 2009 8:20 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: http://www.youtube.com/watch?v=jWFk0XasQmE
Contact:

AI hubs and connections

Post 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.
mswf
Master Bounty Hunter
Master Bounty Hunter
Posts: 1674
Joined: Tue Mar 31, 2009 3:40 pm
Location: Twello, The Netherlands
Contact:

Re: AI hubs and conections

Post 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.
User avatar
AceMastermind
Gametoast Staff
Gametoast Staff
Posts: 3285
Joined: Mon Aug 21, 2006 6:23 am
Contact:

Creating preferred pathing for AI

Post 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.
...
...
Post Reply