Jump to content
sizraide

setUnitPos "UP" not working

Recommended Posts

Hello,

Somehow the setUnitPos "UP" is not working.

When the unit is crouched, setUnitPos "UP" won't work; however, if the unit was prone then setUnitPos "UP" works.

Is the command broken? I thought the AI was bugged when I used it so I recreated the unit but it still occurs, any thoughts?

Share this post


Link to post
Share on other sites
9 hours ago, Maff said:

The setUnitPos command is working for me.

Make sure you are using the command correctly.

Also, Are you using any AI mods?

 

Nope, just 3den Enhanced.

My script is just:

_unit setUnitPos "MIDDLE";
_unit setUnitPos "UP";

My unit has no animation, or anything to prevent it from crouching and standing up.

EDIT: I've created other units and tested it on them, still the same results.

Share this post


Link to post
Share on other sites
6 hours ago, sizraide said:

My script is just:

 

It must be more than that, as _unit is undefined.

  • Like 1

Share this post


Link to post
Share on other sites
2 minutes ago, Harzach said:

 

It must be more than that, as _unit is undefined.


Oh, my bad. _unit is already defined, but the results still the same.

Share this post


Link to post
Share on other sites

Could you post a demo mission that replicates just that? This way other people would be able to test your exact setup.

Share this post


Link to post
Share on other sites
6 hours ago, britforce said:

this setUnitPos "UP"

 

or indeed name the unit     fred setUnitPos "UP"

If _unit is defined then what you suggest should have the same results. Additionally, this is "valid" only in the init box of an object/unit.

  • Like 1

Share this post


Link to post
Share on other sites
On 12/25/2021 at 5:49 PM, ZaellixA said:

If _unit is defined then what you suggest should have the same results. Additionally, this is "valid" only in the init box of an object/unit.

I know. ;)

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

×