Jump to content
Sign in to follow this  
Homefry

Custom Vehicle Animations

Recommended Posts

Does anyone know how to make a soldier in a vehicle's cargo play a custom animation, much like with the BAS Blackhawks? Much help would be appreciated....

-Homefry

Share this post


Link to post
Share on other sites

(crew _heli select 2) switchMove "my_animation.rtm"

"select 2" can be any number, depending on which crew member you want to select

Share this post


Link to post
Share on other sites

Not my thread, but thanks hardrock. I would have been posting something like this in a couple of days for my truck....

Share this post


Link to post
Share on other sites

Just reading my answer and I notice that it was trash what I said.

You can't write

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">(crew _heli select 2) switchMove "my_animation.rtm"

It has to be without the ".rpm", and the animation has to be defined in your config.cpp or description.ext of the mission in CfgMovesMC

for example

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class CfgMovesMC

{

class Default {};

class States

{

class my_animation: Default

{

file="my_animation.rtm";

speed = 2.1; // Speed of the animation

looped=false;

duty = -2.1;

interpolationSpeed=2;

connectFrom[]={Stand, 1, StandVar2, 1, StandVar3, 1};

connectTo[]={Stand, 1, StandVar2, 1, StandVar3, 1};

interpolateTo[]={StandDying,0.1,StandDyingVer2,0.1};

};

};

};

then you can write

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">(crew _heli select 2) switchMove "my_animation"

and it should work.

Share this post


Link to post
Share on other sites

Ah, shows how much help I would have needed. Thanks again.

Would I be able to put that line anywhere? If I wanted the passenger animation to change when a certain even happens I could put another line like that in the script and the crew member would start using the new animation?

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  

×