How do u make the AI not run into stuff? *solved*

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
User avatar
Silas
Captain
Captain
Posts: 481
Joined: Thu Oct 11, 2007 5:30 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

How do u make the AI not run into stuff? *solved*

Post by Silas »

hmm once again im not Silas im BaRn the Elite and id like to know how to make AI not run into stuff on ur map. when i add stuff, the AI just try to get somewere by running into the wall. Anyone know how to fix this?
Last edited by Silas on Wed Nov 28, 2007 7:02 pm, edited 1 time in total.
FragMe!
Gametoast Staff
Gametoast Staff
Posts: 2244
Joined: Sat May 13, 2006 12:34 am
Projects :: Not sure keep changing my mind.
Games I'm Playing :: F1 and SWBF
xbox live or psn: No gamertag set
Location: Origin name GT_FragMe
Contact:

Re: How do u make the AI not run into stuff like they're morons?

Post by FragMe! »

You need to set up barriers and planning, take a look at one of the shipped maps using ZE and you'll get an idea as to what is needed. Word of caution with barriers and planning they cannot cross each other they are also infinite height meaning there is really no way to do multi-level planning or barriers. Just some things to keep in mind as you proceed.
User avatar
Silas
Captain
Captain
Posts: 481
Joined: Thu Oct 11, 2007 5:30 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

Re: How do u make the AI not run into stuff like they're morons?

Post by Silas »

mm so what u do is just that u make a barrier? it means the AI wont run into a frikin wall right?
hmm il try it out and tell u f it works. but still if anyone can give out a better explenation please do so
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: How do u make the AI not run into stuff like they're morons?

Post by MercuryNoodles »

The AI doesn't really detect geometry when pathfinding. Barriers tell the AI where not to go. There should be further explanations in the documentation, and the "Everything you need" thread.
User avatar
Silas
Captain
Captain
Posts: 481
Joined: Thu Oct 11, 2007 5:30 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

Re: How do u make the AI not run into stuff like they're morons?

Post by Silas »

so barriers tell the AI were not to go? workd for me ! i hope it works.
il signal if it worked or not


wait ... do barriers block from ANYTHING goin there.. like its a wall...like when u go to it ur walking into and invisible wall...if thats it the plz i need another way... :|
User avatar
authraw
1st Lieutenant
1st Lieutenant
Posts: 445
Joined: Mon Jun 26, 2006 3:45 pm

Re: How do u make the AI not run into stuff like they're morons?

Post by authraw »

The only thing that barriers do is tell the AI what to avoid--the player can still walk through barriers without a problem. They're the best way to get the AI to do what you want. If you want some more complicated AI behaviour (taking alternative routes to various places) you're going to have to put in bot pathing.
User avatar
Silas
Captain
Captain
Posts: 481
Joined: Thu Oct 11, 2007 5:30 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

Re: How do u make the AI not run into stuff like they're morons?

Post by Silas »

well the only prob with the barriers is in one place the AI still go in the barrier , however all the other barriers work good
very good
i think i have this problem fixed....but dont lock this topic until i can report back

- :clone:
Caleb1117
2008 Most Original Avatar
Posts: 3096
Joined: Sun Aug 20, 2006 5:55 pm
Projects :: No Mod project currently.
xbox live or psn: No gamertag set
Location: X-Fire: caleb1117 ಠ_ಠ

Re: How do u make the AI not run into stuff like they're morons?

Post by Caleb1117 »

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: How do u make the AI not run into stuff like they're morons?

Post by MercuryNoodles »

Well, the AI will still run up to the barrier on occasion, but they won't go past it unless they're dodging.
User avatar
Silas
Captain
Captain
Posts: 481
Joined: Thu Oct 11, 2007 5:30 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

Re: How do u make the AI not run into stuff like they're morons?

Post by Silas »

caleb ur forum helped!!!! thx problem solved
Post Reply