Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
brawler89

Door animation problem

Recommended Posts

hi all

i modeled a house with a door (its not rotating round an axis, its translating). now i added an action menu entry to open it ingame. the problem is, that it doesnt slide. i press the button and its open. but it should slowly slide. :confused:

here is a part of my config.cpp

class AnimationSources {

class Open_door1 {

source = "userD1";

animPeriod = 5;

initPhase = 0;

};

};

class UserActions

{

class Open_Door1

{

displayName="$STR_TUT_OpenDoor";

onlyforplayer = true;

position="D1B";

radius=10;

condition="this animationPhase ""Open_door"" < 0.95";

statement="this animate [""Open_door1"", 1]";

};

class Close_Door1 : Open_Door1

{

displayName="$STR_TUT_CloseDoor";

condition="this animationPhase ""Open_door1"" >= 0.1 ";

statement="this animate [""Open_door1"", 0]";

};

};

};

};

raising the animperiod does not work

need raelly help

Share this post


Link to post
Share on other sites

shouldn't source = "userD1"; be just "source=user" ?

Share this post


Link to post
Share on other sites

i changed the source and it really works! :D

thank you really much

Share this post


Link to post
Share on other sites
Sign in to follow this  

×