Jump to content
Sign in to follow this  
general

new sitting animation

Recommended Posts

how do I make a soldier to use a custom animation when he gets in a vehicle (motorcycle in this case)?

Share this post


Link to post
Share on other sites

Well, it's easy :

If the anim doesn't exist in ofp (new one), just :

config your anim like this :

Quote[/b] ]class CfgMovesMC

{

class Default {};

class DefaultDie: Default {};

class StandBase: Default {};

class States

{

class Youranimclass: StandBase

{

actions = StandTalkActions;

file="path to your anim";

speed = speed of your anim;

looped=false or true, it depends;

soundEnabled=false;

duty = RestDuty;

interpolationSpeed=1;

connectFrom[]={};

connectTo[]={};

interpolateTo[]={CombatDying,0.1,CombatDyingVer2,0.1,CombatDyingVer3,0.1};

};

};

};

Then, indicates that your anim can be used in vehicle :

Quote[/b] ]class CfgVehicleActions

{

Myvehicleanimfordriver="Youranimclass";

};

(the easiest way to avoid confusion is to name the anim class and the vehicle action the same way, like : Youranimclass="Youranimclass")

Then, in the config vehicle :

Quote[/b] ]class CfgVehicles

{

class All{};

class AllVehicles:All{};

class land : Allvehicles {};

class LandVehicle: Land {};  

class Car: LandVehicle {};

class Myvehicle: car

{

....

driverAction="ManACtMyvehicleanimfordriver";

};

If it's an anim for the driver.

Voila voila  xmas_o.gif

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  

×