Jump to content
Sign in to follow this  
1in1class

Units set pos

Recommended Posts

yes iv been trying to get my units and other units to be position in an out post tower and yet they just fall down, how do i get the units to be in the towers? I know that you put someting in the int line but what? Plz help me on this issue. This is what i put in the int line this sepos [(getpos this select 0),(getpos this select 1),1.0] or 2.0 for the how high i would like the unit to be but when putting the unit in an tower the unit just falls.

Share this post


Link to post
Share on other sites

This is the line I use when I place units:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">This setPos [ getPos this select 0, getPos this select 1, (getPos this select 2) +10]

You can change the +10 to what you like. And if you want the units to stay in the towers you may have to add <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">doStop this after the setPos command.

The full init line would like this:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">This setPos [ getPos this select 0, getPos this select 1, (getPos this select 2) +10]; doStop This

That doesn't always keep them in the building/tower though. You can set a waypoint right ontop of some structures and in the waypoint there may be "positions" available to have your soldier climb into - if the structure supports it.

smile_o.gif

Share this post


Link to post
Share on other sites

k about to try this but you said that i can get the units to climb the tower by way point? How would i do this?

Share this post


Link to post
Share on other sites

Nice thank you got the units in the towers now thank you vary much wink_o.gif Also about the unit getting in an tower by climbing it by way point how is this done huh.gif

Share this post


Link to post
Share on other sites

You select the unit you want to get in a structure, click F4 in the editor, put your cursor directly over the structure you want him to go into, put a waypoint on the structure.

In the waypoint's settings, if the structure has "positions" configured in it, an additional box will be visible half way down the screen with "Position 1" "Position 2" etc.

smile_o.gif

Share this post


Link to post
Share on other sites

But... How can you set it so you want to use it with an animation?..

It's kinda hard to explain.. Say for instance a MODUL statick anim over an object with a certain height?..

Thanks

Share this post


Link to post
Share on other sites

If you're already using a static animation, your best bet is probably to just stick with setPos and setPosASL. If you were trying to watch a unit move up a ladder and then interact with something for a while (via a dynamic animation), then move back down (for example) that would be a little more complicated and I probably don't have an answer for you.

But yeah, if you're using a static animation you should probably just stick with setPos because it's not like the animation is as important as the pose.

Share this post


Link to post
Share on other sites

Thanks for the responce and yeah I thought it would be a little complicated ...

But as for the waypoint command version of setpos in buildings i still cant get my head around them... crazy_o.gif

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  

×