Jump to content
Sign in to follow this  
Joe98

How to use setUnitPos

Recommended Posts

From the Wiki I tried:

this setUnitPos "DOWN"

_this setUnitPos "DOWN"

Afterwards I named the man Blue and then tried

Blue setUnitPos "DOWN"

_Blue setUnitPos "DOWN"

But the unit began the mission standing upright.

-

Share this post


Link to post
Share on other sites

Try putting that into a waypoint init

Also for group

{_x setUnitPos "DOWN"} forEach units group this

Share this post


Link to post
Share on other sites

I don't know of a way to get a unit to start the mission laying down or even crouched. If it is absolutely necessary to not see them standing, place the unit out of sight and use the setUnitPos "down" to lay them down. Then use setPos to position them after they have layed down.

Share this post


Link to post
Share on other sites

You're using it right, works fine here w/ CO 1.60 beta (latest). Must be something your end. Also, I don't think this works for player units.

Share this post


Link to post
Share on other sites

My experience is that it is hit and miss with player units. Works fine for AI units.

Share this post


Link to post
Share on other sites
Player or AI?

Player.

It seems that is the answer.

-

Share this post


Link to post
Share on other sites

So you want the player to start the mission lying down? Use an animation.

player switchMove "AmovPpneMstpSrasWrflDnon"

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  

×