How to change Props from era to era

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
Rends
Sith
Sith
Posts: 1278
Joined: Fri Oct 15, 2004 6:34 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Germany
Contact:

How to change Props from era to era

Post by Rends »

At the moment i have an nondrivable ATSt prop in my Mos Eisley Map.
I would like to change the model to Gunship or something like that if you switch from GCW to CW era.
Can anyone explain me how to do it?
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 to change Props from era to era

Post by MercuryNoodles »

There should be a separate layer for each era. Just place the prop in that layer, and it'll only show when that layer is called for. It's in the docs as well.
Xavious
Sith Master
Sith Master
Posts: 2783
Joined: Mon Jun 12, 2006 3:46 pm

Re: How to change Props from era to era

Post by Xavious »

Or you could place them both normally and use KillObject on the one you don't want in each specific game mode. For example, the Clone Wars lua would have the KillObject function delete the AT-ST, and the Galactic Civil War lua would have KillObject delete the LA-AT. No need for extra layers.
User avatar
Rends
Sith
Sith
Posts: 1278
Joined: Fri Oct 15, 2004 6:34 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Germany
Contact:

Re: How to change Props from era to era

Post by Rends »

Well my map has gamemode layers like conquest flags and ELI layers but there arn´t any era layers.
guess i would need to create them.

But the Killobject function seems to be easier todo. Hm might search the docs for more info about it.
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 to change Props from era to era

Post by Teancum »

The layer thing is how it's done. Take a look at Dagobah in ZeroEdit, then look at the LUAs to see how the loaded the LAAT/X-Wing. It's not hard, just not documented. :P
User avatar
Rends
Sith
Sith
Posts: 1278
Joined: Fri Oct 15, 2004 6:34 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Germany
Contact:

Re: How to change Props from era to era

Post by Rends »

Guess it´s easier with layers if you have a couple of objects to change but i only have 2 so the killobject function seems to work fine.
Post Reply