copl 0 Posted December 1, 2002 I'm a newbie, so this q may annoy some people... Here goes, how do you adjust a unit's height? *lots of detail please*. Share this post Link to post Share on other sites
copl 0 Posted December 1, 2002 P.S.... how do u insert your own speech? Share this post Link to post Share on other sites
Balschoiw 0 Posted December 1, 2002 I suggest you to work through some tutorials on editing. Some can be found at my homepage with a complete explanation of the editor and some other helpful things that should answer most of your questions. Furthermore I´ll suggest you to use the button. It will take you to a lot of posts and topics that will help you. Share this post Link to post Share on other sites
Harnu 0 Posted December 1, 2002 1. copl, do searches! 2. To set a units height, put this in their init line: this setpos [(getpos this select 0, getpos this select 1, getpos this select 2) + 0] You can change the + to a - if you want to lower something. And the last 0 change to whatever you want up or down. All the "this" in that line just mean that unit. Whatever units init line that is in, will move that unit. You can change this to a name of a unit if you want to adjust it's height remotely. I.E. a trigger. Share this post Link to post Share on other sites
ralphwiggum 6 Posted December 1, 2002 </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (Harnu @ Dec. 01 2002,17:13)</td></tr><tr><td id="QUOTE">2. Â To set a units height, put this in their init line: this setpos [(getpos this select 0, getpos this select 1, getpos this select 2) + 0]<span id='postcolor'> i think it should be this this setpos [(getpos this select 0), (getpos this select 1), (getpos this select 2) + 0] Share this post Link to post Share on other sites
peanuckle_00 0 Posted December 1, 2002 Wow, it sounds hard to do something as easy as putting a helicopter on the back of an LSD. Share this post Link to post Share on other sites
Balschoiw 0 Posted December 1, 2002 no it´s rather easy. Put this into init field of helo: this setpos [(getpos this select 0), (getpos this select 1), (getpos this select 2) + 0] The 0 at the end has to be replaced by the hight in meters, so I guess 3 or 4 should do the job. Share this post Link to post Share on other sites
Harnu 0 Posted December 1, 2002 </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (RalphWiggum @ Dec. 01 2002,18:10)</td></tr><tr><td id="QUOTE"></span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (Harnu @ Dec. 01 2002,17:13)</td></tr><tr><td id="QUOTE">2. Â To set a units height, put this in their init line: this setpos [(getpos this select 0, getpos this select 1, getpos this select 2) + 0]<span id='postcolor'> i think it should be this this setpos [(getpos this select 0), (getpos this select 1), (getpos this select 2) + 0]<span id='postcolor'> No, you just need the two parenthesesis. To do what you did Ralph is used to set it on all axis. I can remember, but select 0, 1, 2, represent axis, up down, north south, and east west. I.E. this setpos [(getpos this select 0) + 0, (getpos this select 1) + 0, (getpos this select 2) + 0] Each 0 changing it more. But that line is more so used in scripting. Share this post Link to post Share on other sites
RED 0 Posted December 2, 2002 Harnu, Ralph was right. There is nothing wrong with the way he did it or you did it (if you don't need to change the other position of the body you don't need the extra brakets) so you can just use: </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">this setpos [getpos this select 0, getpos this select 1, (getpos this select 2) + 2]<span id='postcolor'> RED Share this post Link to post Share on other sites
Harnu 0 Posted December 2, 2002 I never said he was wrong, I just said you only have to have two parenthesis. However you do it is fine. All the examples are just different ways. Share this post Link to post Share on other sites