AI won't enter fighters

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
vonfrank
Private
Posts: 31
Joined: Sun Dec 13, 2009 12:07 am

AI won't enter fighters

Post by vonfrank »

I have decided to make a space map for the first time and I'm running into problems.

I set the map to be an "uber mode" map in the LUA which lets the map have 100 AI on each side at once.
I then began to modify the Republic by adding more starfighter spawn points in the hanger. All of the new vehicles I have added appeared but now the Republic AI will not enter any of them. they just walk up to them and stand around the fighters. :x

The CIS still get in all of their ships because I haven't tinkered around with the number of spawn points in their ship.

Any advice on how to force the AI to get in an empty fighter?
stardestroyer001
Sergeant Major
Sergeant Major
Posts: 239
Joined: Fri Apr 16, 2010 7:02 pm
Projects :: Space Coruscant [before it corrupted]
Games I'm Playing :: World of Warships
xbox live or psn: StarDestroyer75
Location: Canada
Contact:

Re: AI won't enter fighters

Post by stardestroyer001 »

I believe you need to spawn them in somewhere other than next to the fighters, then do some planning. Build a hub around your spawn point(s) then place more hubs around the vehicle spawn points. Finally, connect them using connections (make sure that your connections are not simply extending out from the one hub to vehicle spawn hubs, you need to make a complete circuit) and make them only soldiers. This might help get troopers into fighters.
vonfrank
Private
Posts: 31
Joined: Sun Dec 13, 2009 12:07 am

Re: AI won't enter fighters

Post by vonfrank »

Tried that and that just made the AI walk into the forcefields toward the enemy ship through space
stardestroyer001
Sergeant Major
Sergeant Major
Posts: 239
Joined: Fri Apr 16, 2010 7:02 pm
Projects :: Space Coruscant [before it corrupted]
Games I'm Playing :: World of Warships
xbox live or psn: StarDestroyer75
Location: Canada
Contact:

Re: AI won't enter fighters

Post by stardestroyer001 »

Yes, they do that. Try moving spawn paths and hubs around.
EDIT: Try combinations of one-way pathing, make a circuit that is only one-way. You'll have to experiment.
Note that the height of the paths (should be a box with the label "Height" and a number and slider) must be where the troopers will go. AKA make the height as high as your deck.
Last edited by stardestroyer001 on Wed Aug 11, 2010 7:35 pm, edited 1 time in total.
User avatar
Culvar
1st Lieutenant
1st Lieutenant
Posts: 429
Joined: Thu Jul 10, 2008 10:36 am

Re: AI won't enter fighters

Post by Culvar »

Are the Star fighters assigned to the right team? You may also need to assign them to a cp.
MercuryNoodles
Jedi
Jedi
Posts: 1003
Joined: Sun Mar 12, 2006 7:16 pm
Projects :: Space - Boarding Action
xbox live or psn: No gamertag set

Re: AI won't enter fighters

Post by MercuryNoodles »

The planning part isn't important within the hangar, so long as they can get to it. I've seen them walk up to ships without any planning. Make sure there aren't units in another room, trying to walk through the walls to get to a ship, though.
stardestroyer001
Sergeant Major
Sergeant Major
Posts: 239
Joined: Fri Apr 16, 2010 7:02 pm
Projects :: Space Coruscant [before it corrupted]
Games I'm Playing :: World of Warships
xbox live or psn: StarDestroyer75
Location: Canada
Contact:

Re: AI won't enter fighters

Post by stardestroyer001 »

Actually this brings up a question: Is there a definitive way to get troopers to enter starfighters? I've moved one of the ships with a hangar a small distance and suddenly the troopers are running towards the corner of the hangar.
So far:
-Planning (hubs and connections) makes soldiers go to the ships but they don't hop in most of the time.
-Barriers around the hangar only cause soldiers to stand around the ships. They don't hop in.
-Access HintNodes don't appear to do anything at all.
-Nothing at all sometimes works but is unpredictable.
User avatar
DarthD.U.C.K.
Master of the Force
Master of the Force
Posts: 6027
Joined: Wed Sep 27, 2006 11:05 am
Location: Duckburg, Germany

Re: AI won't enter fighters

Post by DarthD.U.C.K. »

access hintnodes are attached automatically to turrets and vehicles
fasty
1st Lieutenant
1st Lieutenant
Posts: 438
Joined: Thu Apr 15, 2010 4:17 am
Projects :: Server modding
Games I'm Playing :: SWBF2
Contact:

Re: AI won't enter fighters

Post by fasty »

This might come in handy, might not. Just thought I'd show this.
http://secretsociety.com/forum/download ... 0notes.txt
Post Reply