Page 1 of 1

Overiding skin in different levels

Posted: Tue Feb 17, 2009 3:48 pm
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

Re: Overiding skin in different levels

Posted: Tue Feb 17, 2009 4:05 pm
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.