Jump to content
Sign in to follow this  
HUNT666

Kick down a door?

Recommended Posts

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

Ok i figured out by myself smile_o.gif

But now the next problem.

The door open to slow.

Is it possible to make that anim faster ?

THX for help smile_o.gif

Share this post


Link to post
Share on other sites

animPeriod=2;  

If i'm not wrong it uses "secondes".  wink_o.gif but you can type:

animPeriod=0.0002; if needed.

Share this post


Link to post
Share on other sites

Yea that works wink_o.gif THX

Another Question biggrin_o.gif

Can i combine that anim with sounds ?

THX in advance

Share this post


Link to post
Share on other sites

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""";

rock.gif but didn't worked. Good luck!

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  

×