Overiding skin in different levels

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
MandeRek
Sith Master
Sith Master
Posts: 2766
Joined: Tue Oct 02, 2007 10:51 am
Projects :: Battlefront Zer0
Games I'm Playing :: SWTOR
xbox live or psn: No gamertag set
Location: Ghosting around GT
Contact:

Overiding skin in different levels

Post by MandeRek »

Hi! Now I'm trying a little extra things before I'm going to release Zero, and one was reskinning the various droid units. I used 'overridetexture' function, and setclassproperty in the script, and included the texture called for in the script in the same side as the unit, but no succes. Ingame, it has no texture. Then i remembered someone saying that including a skin in the world's .lvl file will override the original one. Tried it, still no succes. Is there a way to change the skin for one unit in every script/map, without making new ODFs, REQs and localisations?

Thanks
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

Re: Overiding skin in different levels

Post by [RDH]Zerted »

Sorry, I won't be online again as fast as I had first thought... *(in reference to a disconnected XFire chat)

Just like units are read in from a side file, use ReadDataFile() to read in your custom skin.

I don't know about world lvl files, but using a custom ingame.lvl or common.lvl overrides the items in those files.
Post Reply