PDA

View Full Version : config.cpp need help on switching skins on 1 model



XChaos
May 7 2007, 18:01
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  http://forums.bistudio.com/oldsmileys/welcome.gif !

XChaos

Frederf
May 7 2007, 19:18
Might wanna ask in this forum:

ARMA : CONFIGS AND SCRIPTING (addons) (http://www.flashpoint1985.com/cgi-bin/ikonboard311/ikonboard.cgi?act=SF;f=80)

XChaos
May 8 2007, 11:39
THX haven´t seen this section^^

hoz
May 8 2007, 12:14
moving...

XChaos
May 9 2007, 18:06
YAY! http://forums.bistudio.com/oldsmileys/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 http://forums.bistudio.com/oldsmileys/pistols.gif