Jump to content
Sign in to follow this  
pappmensch

Stance adjustment for AI via SetUnitPos?

Recommended Posts

Hi fellow Arma 3 guys!

My question is basically what the title of this thread says. Let's say I'd place an AI on top of a military cargo HQ and I'd like to provide them some cover behind the "walls" on top of it. So what I did was setting them up with

This DisableAI "Move";

so they won't run away when the enemy comes along. You see, now my problem is that if an enemy comes around, my AI would just lay down and then magically fire through the armored walls of the HQ. To stop them from laying down I used the SetUnitPos Command like this:

This SetUnitPos "up";

I didn't use the parameter "middle" because that would make the AI kneel right behind the barrier, seeing no one and not responding to the enemy attack. My plan for now is to find out the next higher stance adjustment that I could use in that position for my AI. Something like This SetUnitPos "middle+" or whatever :D

Thanks in advance,

Pappmensch.

Share this post


Link to post
Share on other sites

Hey, I know it's been three years, but who knows: if I understood you corrcetly, you wanted to find a stance that is a little bit higher then kneeling-stance, right? If so, have you managed to find it?

Share this post


Link to post
Share on other sites

For player's it's LCtrl+W or LCtrl+S (A and D work as well) for the  "+ and -" variations of prone, kneel, stand.  I don't believe that AI have access to those stances unless you directly apply the animations to them perhaps?

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  

×