Jump to content
Sign in to follow this  
fortun

Get soldiers into sitting, crouching and different animations

Recommended Posts

Does somebody know how to do it? I tested with a script i saw from Arma 2

_this setBehaviour "SAFE";
_this disableAI "ANIM";
_this action ["SITDOWN",_this];
   sleep 5;
   waitUntil{
        if(animationState _this != "amovpsitmstpsraswrfldnon")then{
             sleep 8+random(3);
             _this action ["SITDOWN",_this];
             waitUntil{animationState _this == "amovpsitmstpsraswrfldnon"}
        };
        behaviour _this != "SAFE"
   }; 
   _this enableAI "ANIM";

It works a little, they will sit for like 30 seconds, then they are going up again, ARGH.. Whats wrong?********* Fixed, i removed everything but not

_this setBehaviour "SAFE";
_this disableAI "ANIM";
_this action ["SITDOWN",_this]
_this enableAI "ANIM";

So thats okay

Then i wonder about if it is any more poses they can do? And were can i find that and the code for it?

Edited by FortuN

Share this post


Link to post
Share on other sites

without script, just press CTRL+D or CTRL+W depending on your current stand.

if you want to chill (sit) press ","

Share this post


Link to post
Share on other sites

Thanks, but i want it for the AI to have at the starting of the map.

Share this post


Link to post
Share on other sites

this setUnitPos "MIDDLE"; makes the unit always crouch, at least. Coupled with this setBehaviour "SAFE" (to have the weapon lowered) it looks somewhat relaxed.

I don't know what animations there are currently in the game, but in ArmA 2 you could use playMove to make them do something in the background, though if I recall correctly they would complete the animation even if they were shot.

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  

×