Fran89 10 Posted September 2, 2010 (edited) Hello I am a beginner in creating addons, my problem is that the wheels and steering wheel are not move. what choices are required to specify in oxygen and what I have to specify in the config? thanks, sorry for my English. class CfgSkeletons { class Default { isDiscrete = 1; skeletonInherit = ""; skeletonBones[] = {}; }; class Vehicle : Default{}; class car : Vehicle { skeletonInherit="Vehicle"; // loads the bones of class Vehicle skeletonBones[]= { }; }; class coche1_Skeleton : car { skeletonInherit="car"; // loads the bones of class Helicopter skeletonBones[]= { "levy predni", "levy prostredni", "levy zadni", "pravy predni", "pravy prostredni", "pravy zadni", "volant", }; }; }; class CfgModels { class Default { sectionsInherit=""; sections[] = {}; skeletonName = ""; }; class Vehicle : Default { sections[] = { }; }; class car : Vehicle { sectionsInherit="Vehicle"; sections[]= { }; skeletonName="car"; class Animations { }; }; class coche1 : car { sectionsInherit = "car"; sections[] = { "levy predni", "levy prostredni", "levy zadni", "pravy predni", "pravy prostredni", "pravy zadni", "volant", }; skeletonName = "coche1_Skeleton"; class Animations : Animations { class DrivingWheel { type="rotation"; source="drivingWheel"; selection="volant"; axis=""; minValue=-1; maxValue=1; angle0=8; angle1=-8; }; class FrontWheelR { type="rotationX"; source="wheel"; selection="pravy predni"; axis=""; memory="true"; animPeriod=0; sourceAddress="loop"; minValue=0; maxValue=1; angle0=0; angle1="rad -360"; }; class FrontWheel2R: FrontWheelR { selection="pravy dalsi"; }; class BackWheelR: FrontWheelR { selection="pravy zadni"; }; class BackWheel2R: FrontWheelR { selection="pravy prostredni"; }; class FrontWheelL: FrontWheelR { selection="levy predni"; }; class FrontWheel2L: FrontWheelR { selection="levy dalsi"; }; class BackWheelL: FrontWheelR { selection="levy zadni"; }; class BackWheel2L: FrontWheelR { selection="levy prostredni"; }; }; }; }; Edited September 2, 2010 by Fran89 Share this post Link to post Share on other sites
Aqu 0 Posted September 2, 2010 Do you mean nothing moves? The first reason could be the model (p3d) is not named same as the class in the CfgModels class. Generally you have to have named all the bones you have used (in the bones list and used in the animation selections) Also the bones list is list of couples - the bone and teh parent bone to which it is depending. For easier understanding I always make them two in a line. Like this... bones[] = { "bone1", "parent bone 1", "bone2", "parent bone 2", ... }; If it is not depending on any other bone, you can leave the parent bone just "". For rotation you have to define the axis, unless it is rotated in the direction of a main axis (X,Y or Z). In that case it rotates around teh object center. In case of the driving wheel (volant), you have give it the axis as a named selection in the memory lod in O2. It is defined by two vertice. If the axis is not in the memory lod you have to define it in the resolution lods and set memory=0 (otherwise memory=1 to mark it is defined in the memory lod). Share this post Link to post Share on other sites