Jump to content
dlder

Get stance setting of AI unit

Recommended Posts

My googlefu has failed me... I just can't find any function or variable, which would allow me to get a units current stance setting (Stand up, Stay crouched, Go prone, Automatic).

Neither [unit]CombatMode or Behaviour; stance or animationState will only give the current stance, not what it's set to.

 

I just want to check, if the current AI unit stance is set to "Automatic" or not.

 

is this Possible?

 

Thanks!

dlder

Share this post


Link to post
Share on other sites

both only get the current unit's stance, not the setting

or not.... unitPos might actually be the setting and I've just got it wrong; over and over again...

 

Ehm, thx @gc8!

Share this post


Link to post
Share on other sites
27 minutes ago, dlder said:

both only get the current unit's stance, not the setting

or not.... unitPos might actually be the setting and I've just got it wrong; over and over again...

 

Ehm, thx @gc8!

 

remember to read the unitPos wiki carefully "The return value is always "Auto" unless the unit has gotten a setUnitPos command"

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

×