I wanna try to change my fly's skin. So i try to do with 3 steps:
1, made a new skins file "Tu-160.skins"
models
{
lod = {"Tu-160", 1000000};
collision = "Tu-160-COLLISION";
}
argument
{
argument = 70;
skin
{
value = 0.0;
material = {"Body", "standart", "Tu-160.BMP"};
}
skin
{
value = 0.1;
material = {"Body", "standart", "Tu-160-1.BMP"};
}
}
2,add some codes in Scripts\Database\db_countries.lua:
cnt_unit("{12F005C2-F9F1-4BD7-ADA0-AF169A7D8D78}", "Tu-160", {
color_scheme("{FC853FD4-F2FE-4328-9498-7CE054338D1D}", "AF Standart"),
color_scheme("{FC853FD4-F2FE-4328-9498-7CE054338D2D}", "AF Standart 2"),
}),
3,add some codes inScripts\Database\planes\Tu-160.lua:
ColorSchemes = {
color_scheme("{FC853FD4-F2FE-4328-9498-7CE054338D1D}", _("AF Standart"), 0),
color_scheme("{FC853FD4-F2FE-4328-9498-7CE054338D2D}", _("AF Standart 2"), 1),
},
then , I can select "AF Standart"or "AF Standart 2" in game.
but the skin didn't change,whatever i choose ,
my plane just show the "Tu-160.bmp".
PS:how should i understand the "Tu-160-COLLISION"
:helpsmilie: