SetClassProperty

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
skelltor
Sith
Sith
Posts: 1431
Joined: Fri Dec 11, 2009 6:24 pm
Projects :: BFSM
Games I'm Playing :: SWBFII
xbox live or psn: skelltor95
Location: minisnowta
Contact:

SetClassProperty

Post 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.
myers73
Lieutenant General
Lieutenant General
Posts: 690
Joined: Fri Apr 03, 2009 11:04 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: Atlanta, GA xfire=myers73 IngameName=mYers

Re: SetClassProperty

Post 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.
User avatar
skelltor
Sith
Sith
Posts: 1431
Joined: Fri Dec 11, 2009 6:24 pm
Projects :: BFSM
Games I'm Playing :: SWBFII
xbox live or psn: skelltor95
Location: minisnowta
Contact:

Re: SetClassProperty

Post 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
myers73
Lieutenant General
Lieutenant General
Posts: 690
Joined: Fri Apr 03, 2009 11:04 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: Atlanta, GA xfire=myers73 IngameName=mYers

Re: SetClassProperty

Post 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.
User avatar
skelltor
Sith
Sith
Posts: 1431
Joined: Fri Dec 11, 2009 6:24 pm
Projects :: BFSM
Games I'm Playing :: SWBFII
xbox live or psn: skelltor95
Location: minisnowta
Contact:

Re: SetClassProperty

Post 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?
Post Reply