Jump to content
Sign in to follow this  
guyan

Hold Action Animation

Recommended Posts

I am trying to force an animation during a hold action. I have been using the following in Eden without success. Does anyone have any idea what I can change to get it to work properly? The holdAction works, but the animation does not play.

_caller playMoveNow "REPAIR_VEH_KNEEL";

PTKZV2s.png

Share this post


Link to post
Share on other sites

Have you already tried other functions like switchMove or BIS_fnc_ambientAnim?

Apparently, some animations can only be played with certain functions.

I think there was some kind of naming convention that indicated this.

In any case, I would try BIS_fnc_ambientAnim, as it is listed in the wiki in connection with the animation:

https://community.bistudio.com/wiki/BIS_fnc_ambientAnim

[_caller,"REPAIR_VEH_KNEEL","ASIS"] call BIS_fnc_ambientAnim;

  • Like 1

Share this post


Link to post
Share on other sites

Hi, with an holdaction like this, i use something like that :

/* Code executed when action starts */

[_caller,"Acts_carFixingWheel"] remoteExec ["playMove", 0];
                                                         
/* Code executed on completion */                                         
 [_caller,""] remoteExec ["switchMove", 0];
                                                            
/* Code executed on interrupted */

[_caller,""] remoteExec ["switchMove", 0];

It works fine and with remoteExec, it's MP-proof. You need to start the move, then disable it, if not, you will have your player doing it in a loop 😁

  • Like 1

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  

×