Atropin 0 Posted April 7, 2010 Hi all! I am experimenting with O2 and trying to get animations (trigger,bolt) to work ingame. Magazine and trigger animations work fine. But bolt dont work. I put 2 points in memory LOD and named them "bolt_axis_begin" and "bolt_axis_end". I have a model part named "bolt" in 1.0 and View Pilot LOD. :confused: What i am doing wrong? Here is my model.cfg class CfgSkeletons { class Default; class Weapon: Default { skeletonInherit="Default"; skeletonBones[]= { "magazine", "", "trigger", "", "bolt", "" }; }; }; class CfgModels { class Default { sectionsInherit=""; sections[]={}; skeletonName=""; }; class Weapon: Default { sections[]= { "zasleh" }; skeletonName="Weapon"; class Animations { class magazine_hide { type="hide"; source="reloadMagazine"; selection="magazine"; minValue=0.2; maxValue=0.25; hideValue=0.1; }; class trigger { type="rotationZ"; source="reload"; selection="trigger"; axis="trigger_axis"; minValue=0; maxValue=0.0099999998; angle0=0; angle1=0.0099999998; }; class bolt { type="translation"; source="reload"; selection="bolt"; begin="bolt_axis_begin"; end="bolt_axis_end"; minValue=0; maxValue="1"; offset0="0"; offset1="1"; }; }; }; class ISG_38basic: Weapon { }; }; Share this post Link to post Share on other sites
[aps]gnat 28 Posted April 8, 2010 Not familiar with the reload animation source, but maybe try dropping the; minValue=0; maxValue="1"; out of your definition for now. Also, the " " may not be helpful ! Share this post Link to post Share on other sites
Atropin 0 Posted April 8, 2010 (edited) Thank you for answering, but changing model.cfg that way brought no effort. Maybe error is in Memory LOD... EDIT Finally i got it, after some changes all things work like i wanted class CfgSkeletons { class Default { isDiscrete = 1; skeletonInherit = ""; skeletonBones[] = {}; }; class ISG_38_skeleton: Default { skeletonInherit=""; skeletonBones[]= { "magazine","", "trigger","", "bolt","" }; }; }; class CfgModels { class Default { sectionsInherit=""; sections[]={}; skeletonName=""; }; class ISG_38basic: Default { sections[]= { "zasleh" }; skeletonName="ISG_38_skeleton"; class Animations { class magazine_hide { type="hide"; source="reloadMagazine"; selection="magazine"; minValue=0.2; maxValue=0.25; hideValue=0.1; }; class trigger { type="translationX"; source="reload"; selection="trigger"; axis=""; animPeriod=0; memory="false"; minValue=0; maxValue=0.016; }; class bolt_action { type="translationX"; source="reload"; selection="bolt"; axis=""; memory="false"; animPeriod=0; minValue=0; maxValue=0.08; }; class bolt_empty { type="translationX"; source="isempty"; selection="bolt"; axis=""; memory="false"; animPeriod=0; minValue=0; maxValue=0.08; }; }; }; }; Edited April 8, 2010 by Atropin Update Share this post Link to post Share on other sites