How do i load certain layers for certain era's?

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
linksith
Command Sergeant Major
Command Sergeant Major
Posts: 284
Joined: Mon Jul 12, 2010 12:19 pm
Projects :: Waaay too many projects
Games I'm Playing :: too many
xbox live or psn: me has no xbox
Location: looking for a wifi connection

How do i load certain layers for certain era's?

Post by linksith »

Hi, I was wanting certain layers to be loaded for a certain era because of different props. I'm not sure how to do this because it is a land map. I did some searching around gt but I couldn't seem to find anything. Could someone help me? Thanks.
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: How do i load certain layers for certain era's?

Post by DarthD.U.C.K. »

you do it like that:

Code: Select all

ReadDataFile("dc:AAA\\AAA.lvl", "AAA_conquest")
this loads the layer "conquest" from the custom world "AAA"

Code: Select all

ReadDataFile("fel\\fel1.lvl", "fel1_campaign")
this loads the layer "campaign" from the shipped world "fel"
so if you want to load another layer, put in an additional readdatafileline with the layername in the eras luas.
User avatar
linksith
Command Sergeant Major
Command Sergeant Major
Posts: 284
Joined: Mon Jul 12, 2010 12:19 pm
Projects :: Waaay too many projects
Games I'm Playing :: too many
xbox live or psn: me has no xbox
Location: looking for a wifi connection

Re: How do i load certain layers for certain era's?

Post by linksith »

Thanks for the info. :wink:
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Re: How do i load certain layers for certain era's?

Post by Teancum »

A great example is Dagobah. Take a look at how they put the LAAT/i in CW and the X-Wing in GCW. The luas and map should put the pieces together for you.
MrCrayon
Jedi Knight
Jedi Knight
Posts: 554
Joined: Sat Apr 17, 2010 8:15 pm
Projects :: Coruscant map Want to help PM me
Games I'm Playing :: Battlefront 3
Location: Buried in homework, but getting better

Re: How do i load certain layers for certain era's?

Post by MrCrayon »

It actually tells you in the tutorial in the documentation (I was reading it today).

Its easy to miss though so I am happy this is cleared up now.
Post Reply