Jump to content
Sign in to follow this  
lukemax

Animation problem!

Recommended Posts

Hi this is my copy of the animaion sectian of my vechiles config but ingame the animations dont work any ideas?

class Animations

{

class thegear

{

type="rotation";

animPeriod=3;

selection="thegear";

axis="gearaxis";

angle0=0.000000;

angle1=-0.0500;

};

class backramp

{

type="rotation";

animPeriod=3;

selection="backramp";

axis="axisbackramp";

angle0=0;

angle1=1.361352;

};

class thegear1

{

type="rotation";

animPeriod=3;

selection="thegear1";

axis="gearaxis1";

angle0=0.000000;

angle1=1.221726;

};

class thegear2

{

type="rotation";

animPeriod=3;

selection="thegear2";

axis="gearaxis2";

angle0=0.000000;

angle1=1.221726;

};

};

class UserActions

{

class LandingGearup

{

displayName="Gear up";

position="doors";

radius=25.5;

condition="this animationPhase ""thegear"" < 0.05";

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

};

class LandingGeardown

{

displayName="Gear down";

position="doors";

radius=25.5;

condition="this animationPhase ""thegear"" >= 0.05";

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

};

class OpenDoors1

{

displayName="Open Ramp"

position="axisbackramp";

radius=15.5;

condition="this animationPhase ""backramp"" < 0.05";

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

};

class CloseDoors1

{

displayName="Close Ramp";

position="axisbackramp";

radius=18100;

condition="this animationPhase ""backramp"" >= 0.5 and player distance this < 20";

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

};

class LandingGearup1

{

displayName="Thuster 1 Back";

position="doors";

radius=25.5;

condition="this animationPhase ""thegear1"" < 0.05";

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

};

class LandingGeardown1

{

displayName="Thuster 1 Froward";

position="doors";

radius=25.5;

condition="this animationPhase ""thegear1"" >= 0.05";

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

};

class LandingGearup2

{

displayName="Thuster 2 Back";

position="doors";

radius=25.5;

condition="this animationPhase ""thegear2"" < 0.05";

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

};

class LandingGeardown2

{

displayName="Thuster 2 Froward";

position="doors";

radius=25.5;

condition="this animationPhase ""thegear2"" >= 0.05";

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

};

Share this post


Link to post
Share on other sites

None of the anims work? I would assume that your cfgvehicles is closing early and not including the anims...maybe post the rest of your cpp

Share this post


Link to post
Share on other sites

I found recently the hard way that if you have any "};" between cfgvehicles and animations that it won't load the animations or will crash. What Bratz said - wheres the rest of the .cpp?

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  

×