Jump to content
Sign in to follow this  
RazorX

Problem with moves animations

Recommended Posts

I have a problem with playMove

I have this:

_unit playMove "RepairingKneel"

and the unit plays the given animation in a loop. How can I get the unit in the normal standing position again?

I used:

_unit playMove "";
_unit playMoveNow "";
_unit switchMove "";

None of them works. When using switchMove, the unit's anim is changed to the default but again the "RepairingKneel" animation starts. What am I doing wrong?

Share this post


Link to post
Share on other sites

Try this:

_unit playMove "AmovPercMstpSnonWnonDnon";

That should do the job. Get your hands on the config files, in there you will find details of which anims connect to and from other anims.

For example in your case:

class RepairingKneel : CutSceneAnimationBase
{
ConnectTo[]={"[b]AmovPercMstpSnonWnonDnon[/b]",0.01};
InterpolateTo[]={};
file="\CA\Anims\CHARACTERS\data\Anim\sdr\cts\idling\opravykneel";
speed=0.008886;
actions="CivilKneelActions_RepairingKneel";
};

Share this post


Link to post
Share on other sites

If you don't need the unit to do a smooth transition into the animation initially, you can use switchMove instead of playMove. Then you will be able to exit the loop using switchMove "".

Share this post


Link to post
Share on other sites

Yep, I need a smooth transition :) thanks a lot, problem solved

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  

×