SetDenseEnvironment in a region? *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
lucasfart
Sith
Sith
Posts: 1440
Joined: Tue Feb 24, 2009 5:32 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: Australia

SetDenseEnvironment in a region? *SOLVED*

Post by lucasfart »

As the question says, is it possible to make the map use the code SetDenseEnvironment as both true and false, depending on regions? for Example, i want to make a large system of tunnels use set dense environment while still having it set to false in a large open area??
Last edited by lucasfart on Sat Feb 13, 2010 5:28 am, edited 1 time in total.
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: SetDenseEnvironment in a region?

Post by Maveritchell »

No. You are interested in AI vis regions.
User avatar
lucasfart
Sith
Sith
Posts: 1440
Joined: Tue Feb 24, 2009 5:32 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: Australia

Re: SetDenseEnvironment in a region?

Post by lucasfart »

Maveritchell wrote:No. You are interested in AI vis regions.
Is that all the command does?? i thought it affected the ai's gameplay style, not just the visibility?
also, how would i set up these regions and what exactly do they do, just change the visibility range?
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: SetDenseEnvironment in a region?

Post by Maveritchell »

lucasfart wrote:Is that all the command does?? i thought it affected the ai's gameplay style, not just the visibility?
The documentation says that the SetDenseEnvironment command "make[s] the AI see a shorter distance, and other various things to make the AI act more appropriately in an environment with limited visibility." I don't know what 'various other things' entail, but I would imagine the difference between that and whatever AI vis regions do (if there is a difference at all) is fairly trivial.

Just set up your region wherever you want the AI to have limited visibility. I don't know offhand precisely how they work; the best thing to do (if you are confused as to what they are doing) would be to test them with extreme parameter changes (i.e. minimal AI visibility versus maximum outside the region). The region's parameters are fairly self-explanatory, though, and I would imagine that there's not much more to them than what's laid out by the parameters.
User avatar
lucasfart
Sith
Sith
Posts: 1440
Joined: Tue Feb 24, 2009 5:32 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: Australia

Re: SetDenseEnvironment in a region? *SOLVED*

Post by lucasfart »

Maveritchell wrote:
lucasfart wrote:Is that all the command does?? i thought it affected the ai's gameplay style, not just the visibility?
The documentation says that the SetDenseEnvironment command "make[s] the AI see a shorter distance, and other various things to make the AI act more appropriately in an environment with limited visibility." I don't know what 'various other things' entail, but I would imagine the difference between that and whatever AI vis regions do (if there is a difference at all) is fairly trivial.

Just set up your region wherever you want the AI to have limited visibility. I don't know offhand precisely how they work; the best thing to do (if you are confused as to what they are doing) would be to test them with extreme parameter changes (i.e. minimal AI visibility versus maximum outside the region). The region's parameters are fairly self-explanatory, though, and I would imagine that there's not much more to them than what's laid out by the parameters.
Sorry if this question seems really stupid, but how do i change settings for regions and what is the regions name type?......the type of region

EDIT: Nevermind my questions, i just found the answers in Psychofred's docs:
http://www.secretsociety.com/forum/down ... ility.html
Also, does anyone know any other functions of SetDenseEnvironment??
Post Reply