killouze 0 Posted May 15, 2010 Hello, I try to play an animation on my door. (For the opening and closing) I have actions "Open Door" and "Close door" in the game, but it does not move when I active. I created an axis of rotation and an action item. My config.cfg : #define private 0 #define protected 1 #define public 2 #define true 1 #define false 0 class CfgPatches { class ado_test { units[] = {}; weapons[] = {}; requiredVersion = 0.1; }; }; class CfgVehicleClasses { class ado_test_class { displayName = "Killer objets"; }; }; class CfgSkeletons { class Default; // External class reference class Strategic; // External class reference class killer_objets : Strategic { isDiscrete = 1; skeletonInherit = ""; skeletonBones[] = {"door1", "v1", "door1_a"}; }; }; class Rotation; // External class reference class CfgVehicles { class Thing; class Building; class Strategic; class NonStrategic : Building {class DestructionEffects;}; class Ruins; class ado_porte : Ruins { skeletonName = "killer_objets"; vehicleClass = "ado_test_class"; scope = public; model="\ado_test\porte1.p3d"; armor=2000; displayName="Porte"; icon="\ado_test\i_mur.paa"; mapSize = 8; animated = 0; class AnimationSources { class portes_source { source = "user"; animPeriod = 2; initPhase = 0; }; }; class Animations { class door1move { source = "portes_source"; type = "rotation"; animPeriod = 2; selection = "door1"; axis = "v1"; angle0 = 0; angle1 = - 1.6; }; }; class UserActions { class OpenDoor { displayName="Ouvrir Porte"; position="door1_a"; radius=1.5; condition="this animationPhase ""door1move"" < 0.5"; statement="this animate [""door1move"",1]"; onlyforplayer = 0; }; class CloseDoor { displayName="Fermer Porte"; position="door1_a"; radius=1.5; condition="this animationPhase ""door1move"" > 0.5"; statement="this animate [""door1move"",0]"; onlyforplayer = 0; }; }; }; }; If you want the P3D, known to me. Thank you ps: sorry for my english Share this post Link to post Share on other sites
rksl-rock 1301 Posted May 15, 2010 do you have the animation bones and source defined in the model.cfg? Share this post Link to post Share on other sites