Jump to content
Sign in to follow this  
tambovskya

Personal Tutorial: How to view animations, and play them.

Recommended Posts

rW2cEB1.jpg

Dear Community Members,

I have made a video on how you can get into the animator viewer, but also how to make a unit play the animation. In many cases people were unable to do it, but I hope that this will help them. This was you can make the unit go into any animation you like.

Unit Script: this switchMove "placeAnimation"; this disableAI "ANIM;
Trigger Script: [] call BIS_fnc_animViewer;

YouTube Video:

http://youtu.be/YM7oD9sL6Zw

Edited by tambovskya

Share this post


Link to post
Share on other sites

Thanks (although I already know how to set basic anims), but could you explain why not all animations can be set by switchmove? Or more clearly: how can I set "AinvPknlMstpSnonWnonDnon_medic_1"?

Share this post


Link to post
Share on other sites
Thanks (although I already know how to set basic anims), but could you explain why not all animations can be set by switchmove? Or more clearly: how can I set "AinvPknlMstpSnonWnonDnon_medic_1"?

I was sure that all animations would work with that, but in this case you can try the following:

playAction, playActionNow, playMove, switchMove .

What you do is replace the switchMove to playMove , or any of the other ones.

---------- Post added at 19:41 ---------- Previous post was at 19:39 ----------

I have just tried the animation, and it works.

 this switchMove "AinvPknlMstpSnonWnonDnon_medic_1"; this disableAI "ANIM"; 

Share this post


Link to post
Share on other sites

There is even quicker way

1. Doubleclick on map in Editor

2. Insert in init field:

null = [] spawn {sleep 1; disableSerialization; call BIS_fnc_animViewer;};

3. Preview

Share this post


Link to post
Share on other sites

Thanks for the answer, but I forgot to say that I want to set the animation of the player for an amount of time.

My approach:

player switchMove "AinvPknlMstpSnonWnonDnon_medic_1";
sleep 10;
player switchmove "";

But the player only puts the gun away for a glimpse.

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  

×