Jump to content
Sign in to follow this  
wld427

Sections inherit error......

Recommended Posts

Im getting a sections inherit error, can anyone spot the problem?

Pastebin: http://pastebin.com/m59f42c79

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class CfgSkeletons {

class Tank; // External class reference

class PRACS_SA6Skeleton : Tank {

isDiscrete = 1;

skeletonInherit = "";

skeletonBones[] = {"levy predni", "", "levy dalsi", "", "levy prostredni", "", "levy zadni", "", "pravy predni", "", "pravy dalsi", "", "pravy prostredni", "", "pravy zadni", "", "damageHide", "", "OtocVez", "", "OtocHlaven", "OtocVez", "otocvelitele", "OtocVez", "otochlavenvelitele", "otocvelitele", "damageVez", "OtocVez", "damage_com_turret", "otocvelitele", "damage_mg", "otochlavenvelitele", "Poklop_Gunner", "OtocVez", "Poklop_Commander", "otocvelitele", "div_h_null", "", "poklop_Driver", "div_h_null", "kolL1", "", "kolL2", "", "kolL3", "", "kolL4", "", "kolL5", "", "kolL6", "", "kolL7", "", "kolL8", "", "kolP1", "", "kolP2", "", "kolP3", "", "kolP4", "", "kolP5", "", "kolP6", "", "kolP7", "", "kolP8", "", "podkoloL1", "", "podkoloL2", "", "podkoloL3", "", "podkoloL4", "", "podkoloL5", "", "podkoloL6", "", "podkoloL7", "", "podkoloL8", "", "podkoloP1", "", "podkoloP2", "", "podkoloP3", "", "podkoloP4", "", "podkoloP5", "", "podkoloP6", "", "podkoloP7", "", "podkoloP8", "", "koloL1", "podkoloL1", "koloL2", "podkoloL2", "koloL3", "podkoloL3", "koloL4", "podkoloL4", "koloL5", "podkoloL5", "koloL6", "podkoloL6", "koloL7", "podkoloL7", "koloL8", "podkoloL8", "koloP1", "podkoloP1", "koloP2", "podkoloP2", "koloP3", "podkoloP3", "koloP4", "podkoloP4", "koloP5", "podkoloP5", "koloP6", "podkoloP6", "koloP7", "podkoloP7", "koloP8", "podkoloP8", "podkoloL1_hide", "podkoloL1", "podkoloL2_hide", "podkoloL2", "podkoloL3_hide", "podkoloL3", "podkoloL4_hide", "podkoloL4", "podkoloL5_hide", "podkoloL5", "podkoloL6_hide", "podkoloL6", "podkoloL7_hide", "podkoloL7", "podkoloL8_hide", "podkoloL8", "podkoloP1_hide", "podkoloP1", "podkoloP2_hide", "podkoloP2", "podkoloP3_hide", "podkoloP3", "podkoloP4_hide", "podkoloP4", "podkoloP5_hide", "podkoloP5", "podkoloP6_hide", "podkoloP6", "podkoloP7_hide", "podkoloP7", "podkoloP8_hide", "podkoloP8"};

};

};

class CfgModels {

class Tank {

class Animations {

class IndicatorSpeed; // External class reference

class IndicatorRPM; // External class reference

class DamageHide; // External class reference

};

};

class PRACS_SA6 : Tank {

sections[] = {"fire_1", "fire_2", "fire_b_1", "fire_b_2", "fire_c_1", "fire_c_2", "L svetlo", "P svetlo", "PasOffsetP", "PasOffsetL", "zbytek"};

skeletonName = "PRACS_SA6Skeleton";

class Animations : Animations {

class MainTurret {

type = "rotationY";

source = "mainTurret";

selection = "OtocVez";

axis = "OsaVeze";

animPeriod = 0;

memory = 0;

minValue = "rad -360";

maxValue = "rad +360";

angle0 = "rad -360";

angle1 = "rad +360";

};

class MainGun : MainTurret {

type = "rotationX";

source = "mainGun";

selection = "OtocHlaven";

axis = "OsaHlavne";

};

class ObsTurret {

type = "rotationY";

source = "obsTurret";

selection = "OtocVelitele";

axis = "OsaVelitele";

animPeriod = 0;

minValue = "rad -360";

maxValue = "rad +360";

angle0 = "rad -360";

angle1 = "rad +360";

};

class ObsGun : ObsTurret {

type = "rotationX";

source = "obsGun";

selection = "OtocHlavenVelitele";

axis = "OsaHlavneVelitele";

};

class HatchGunner {

animPeriod = 0;

type = "rotation";

source = "hatchGunner";

selection = "poklop_gunner";

axis = "osa_poklop_gunner";

angle0 = -1.74533;

angle1 = 0.0;

};

class IndicatorSpeed : IndicatorSpeed {

type = "rotation";

source = "speed";

selection = "ukaz_rychlo";

axis = "osa_rychlo";

memory = 0;

minValue = 0.0;

maxValue = 16.67;

angle0 = -2.26893;

angle1 = 2.26893;

};

class IndicatorRPM : IndicatorRPM {

angle0 = -0.436332;

angle1 = 0.436332;

};

class poklop_driver_damage : damageHide {

selection = "poklop_driver";

};

class poklop_gunner_damage : damageHide {

selection = "poklop_gunner";

};

class damageDriver : damageHide {

selection = "damageDriver";

};

class damageHlaven : damageHide {

selection = "damageHlaven";

};

class ammo_belt_rotation {

type = "rotationZ";

source = "belt_rotation";

selection = "ammo_belt";

axis = "ammo_belt_axis";

memory = 1;

sourceAddress = "loop";

minValue = 0.0;

maxValue = 0.01;

angle0 = 0.0;

angle1 = -0.20944;

};

};

};

};

Share this post


Link to post
Share on other sites

yes, in class PRACS_SA6Skeleton: Tank add:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">isDiscrete = 0;

skeletonInherit = "Default";

Inherit = "Default";

also, try to make class tank: Default{}; instead of class Tank;.

Share this post


Link to post
Share on other sites

Thanks Linker Split

you da man

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  

×