Page 1 of 1

SetClassProperty

Posted: Sat Jul 03, 2010 2:22 pm
by skelltor
Ok so i am trying to save space in my mod so i tried to use the SetClassProperty to change the geometry to use a different skin and model i added this line to my lua am i doing this right?

SetClassProperty("rep_inf_ep3_engineer", "GeometryName","rep_inf_brown_scout.msh")

or is it
SetClassProperty("rep_inf_ep3_engineer", "GeometryName","rep_inf_brown_scout")
or something totally different?

in my bf2 log it says it cant find the geometry help please.

Re: SetClassProperty

Posted: Sat Jul 03, 2010 2:25 pm
by myers73
i dont think that will work, but what it appears you are trying to do is just set the geometry, not change the skin.

Re: SetClassProperty

Posted: Sat Jul 03, 2010 2:27 pm
by skelltor
the rep_inf_brown_scout msh uses a different skin and model and why wont it work? if you would please elaborate :D

Re: SetClassProperty

Posted: Sat Jul 03, 2010 2:32 pm
by myers73
Are you making a custom side? If so then this will not save you any space, it will actually cost you a few bytes. If you are changing a stock side, cool idea, make sure you load a unit that uses that .msh by default before you try adding the .msh to another unit, you dont have to add it to a team though.

Re: SetClassProperty

Posted: Sat Jul 03, 2010 2:35 pm
by skelltor
i am useing the stocks sides edited though so let me see if i get what your saying if i made a new unit req,odf,ect and had it use the brown scout msh than i could use set class property for any other units i wanted to use that msh?