HUNT666 0 Posted April 5, 2004 Hi everybody. I was searching a way to realize my doorkickanim. i have  a building with diffrent doormodels . Is it possible to open a door with my customanim and sounds ? THX Here is my config(modified from brsseb tut): #define TEast 0 #define TWest 1 #define TGuerrila 2 #define TCivilian 3 #define TSideUnknown 4 #define TEnemy 5 #define TFriendly 6 #define TLogic 7 #define true 1 #define false 0 #define private 0 #define protected 1 #define public 2 class CfgPatches { class OFPH_shed { units[] = {shed}; weapons[] = {}; requiredVersion = 1.85; }; }; class CfgVehicles { class All{}; class Static: All{}; class Building: Static{}; class Strategic: Building{}; class shed1: Strategic{}; class OFPH_shed : shed1 { model="\3ds\shed"; armor=2000; scope=2; displayName="ofph_shed"; animated=1; class Animations { // Side (slide-style) door class ani_sideDoor { type="rotation"; animPeriod=2; selection="side_door"; axis="side_door_axis"; angle0=0; angle1=-90.033; }; }; /* Animation class end */ // Useraction class class UserActions { class OpenSideDoor { displayName="Kick Door"; position="pos_side_door"; radius=2.000000; condition="this animationPhase ""ani_sideDoor"" < 0.5"; statement="this animate [""ani_sideDoor"", 1]"; }; }; /* Useraction class end */ }; /* Model class end*/ }; /* CfgVehicle class end*/ When i activate that kick door in my Action menu the door spin around .. I want that the door fall into the room. CU Share this post Link to post Share on other sites
HUNT666 0 Posted April 5, 2004 Ok i figured out by myself But now the next problem. The door open to slow. Is it possible to make that anim faster ? THX for help Share this post Link to post Share on other sites
DaSquade 0 Posted April 5, 2004 animPeriod=2; Â If i'm not wrong it uses "secondes". Â but you can type: animPeriod=0.0002; if needed. Share this post Link to post Share on other sites
HUNT666 0 Posted April 5, 2004 Yea that works THX Another Question Can i combine that anim with sounds ? THX in advance Share this post Link to post Share on other sites
DaSquade 0 Posted April 5, 2004 Hmmm, (doesn't work for me..jet) but this should be a start: // sounds class cfgsounds {       class TraHitch       {              sound[]={"\addonname\soundname.wav",db+120,5};              name = "TraHitch";              titles[] = {};        }; }; and add this to your class UserActions: (in the status line) statement="this animate [""ani_traHitch1"", 1],this say ""TraHitch"""; but didn't worked. Good luck! Share this post Link to post Share on other sites
HUNT666 0 Posted April 5, 2004 OK Thx i will test it.. CU Share this post Link to post Share on other sites