Page 1 of 1
Switching Models/Textures?
Posted: Mon Mar 09, 2009 2:43 am
by Sky_216
Is there any way to switch the model/texture a unit uses through lua without causing online crashing??? So say I wanted to load the same republic side in two maps, with the same unit names, but wanted one map to use one set of models/textures and the other to use another set? Or is there some other way to do it?
Re: Switching Models/Textures?
Posted: Mon Mar 09, 2009 10:07 am
by Maveritchell
Please clarify. From your explanation, I'm not sure why you wouldn't just make two separate sides with the same unit names. They're on two different maps, why would that crash online?
Re: Switching Models/Textures?
Posted: Mon Mar 09, 2009 4:02 pm
by Sky_216
Attempt at reducing file size + not having a whole load of extra localising to do. Oh and the online thing is irrelevant, I initially wanted a random Phase I/II switch, so please ignore that.
But if I just have the clone legion with different models as a side 'based' on the other side (ie contains only some odfs and models for clones themselves), and use the method of loading the initial rep side in the lua first, then the second rep side (with the wanted models), would that work?
Re: Switching Models/Textures?
Posted: Mon Mar 09, 2009 4:04 pm
by Maveritchell
Sure, you could do it. It's not going to reduce your final size by a lot, though, since you've still got to load all those models into your side and then load them into your lua somehow.
Re: Switching Models/Textures?
Posted: Mon Mar 09, 2009 4:06 pm
by Sky_216
K, thanks anyway. This can now be Locked.