Jump to content
Sign in to follow this  
XChaos

config.cpp need help on switching skins on 1 model

Recommended Posts

Hi,

I´ve made a car with 3 skins called: "skin1", "skin2" and "skin3" and my model is called "car". What i must write in the config.cpp that the 3 skins can used only with 1 model?

In the editor selections: car skin1, car skin2, car skin3.

Every help is  welcome.gif !

XChaos

Share this post


Link to post
Share on other sites

THX haven´t seen this section^^

Share this post


Link to post
Share on other sites

YAY! yay.gif

I´ve found it on my way^^ for those who are interested:

writing in the cfgmodels addons class:

sections[] ={"X"} // X=Component in O2

writing in the cfgvehicles addons class:

hiddenSelections[] = {"X"}; // X=Component in O2

---

in the init field of unit:

this setObjectTexture [0, "\xxxxx\xxxxxx.pac"] // path to the texture

XChaos pistols.gif

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×