MozMan 0 Posted February 9, 2002 can ne1 tell me how i would move a heli to 100 feet in the air INSANTLY Share this post Link to post Share on other sites
Damage Inc 0 Posted February 9, 2002 Put this flyinheight 100 in the init field. Share this post Link to post Share on other sites
Jamesia 0 Posted February 9, 2002 Errm, that doesn't make them START at altitude 100 I also am keen to find out how to have helos at 100 feet instantly. Share this post Link to post Share on other sites
TheOberleutnant 0 Posted February 9, 2002 Make sure "Flying" is selected in the Special box, them type "this flyinheight 100" in the initbox. That works. Share this post Link to post Share on other sites
MP 0 Posted February 9, 2002 He said instantly people... You'll need a point of reference for this (e.g an invisable H with the name H1). Make sure the chopper is flying and in the init field type: </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 H1 select 0, getpos H1 select 1, (getpos H1 select 2)+100];this flyinheight 100<span id='postcolor'> What I did here was to set the position of the heli to 100m straight away. The flyinheight command will keep him there... That should help Share this post Link to post Share on other sites
MozMan 0 Posted February 9, 2002 woo nice 1, now that works i want to do a fade out...then when it fades in again, i want the player (solider) to be in a different location 2m's ahead of a invis helipad and then soldiers around him, positioned refering to the invisable helipad. How would i go about this MP ? Share this post Link to post Share on other sites
MP 0 Posted February 9, 2002 </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (MozMan @ Feb. 09 2002,21:11)</td></tr><tr><td id="QUOTE">woo nice 1, now that works i want to do a fade out...then when it fades in again, i want the player (solider) to be in a different location 2m's ahead of a invis helipad and then soldiers around him, positioned refering to the invisable helipad. How would i go about this MP ? Â <span id='postcolor'> Not sure what your trying to say here MozMan Share this post Link to post Share on other sites
MozMan 0 Posted February 9, 2002 lol, well basically what u did before was the "up" axis, i need the forward and left/right axis, i need this to position a soldier 1m infront of the player and 1m to the left Share this post Link to post Share on other sites
mahuja 12 Posted February 11, 2002 </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (MP @ Feb. 09 2002,20:45)</td></tr><tr><td id="QUOTE">He said instantly people... You'll need a point of reference for this (e.g an invisable H with the name H1). Make sure the chopper is flying and in the init field type: </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 H1 select 0, getpos H1 select 1, (getpos H1 select 2)+100];this flyinheight 100<span id='postcolor'> What I did here was to set the position of the heli to 100m straight away. The flyinheight command will keep him there...<span id='postcolor'> He said insantly. (You get the point ) You don't need a point of reference. The z position is supposed to be how far above ground. </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">helo1 setpos [getpos helo1 select 0, getpos helo1 select 1, 33] <span id='postcolor'> Notice how I used 33. He asked for 100 FEET which is ~33 meters. The ingame altmeters always show meters too. The first of "position" is east/west, the second is north/south, and the third is altitude above ground. The position is in meters. In other words, </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE"> man setpos [getpos player select 0 +1, getpos player select 1 +1, getpos player select 2] <span id='postcolor'> Ought to place him ~1.4 meters northwest of you. (unless I got the polarisation wrong) Share this post Link to post Share on other sites
MozMan 0 Posted February 11, 2002 hmmm it didn't seem to work, he didn't appear Share this post Link to post Share on other sites
mahuja 12 Posted February 12, 2002 If I could have tried myself, (I can't here) I would've tested this myself. However, </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE"> man setpos [(getpos player select 0) +1, (getpos player select 1) +1, getpos player select 2] <span id='postcolor'> might fix it, depending on where the error was. (else it would try set man.x = player.y and man.y = player.z and man.z = player.z) Share this post Link to post Share on other sites
MozMan 0 Posted February 12, 2002 woo nice it works Share this post Link to post Share on other sites
ConanOfOz 0 Posted February 13, 2002 </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">You don't need a point of reference. The z position is supposed to be how far above ground. </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">helo1 setpos [getpos helo1 select 0, getpos helo1 select 1, 33] <span id='postcolor'><span id='postcolor'> For the sake of my own edification... Given that this is being done as an initial state, and therefore in an initialization field, would the following form work? </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, 33]; this flyinheight 33 <span id='postcolor'> Share this post Link to post Share on other sites
mahuja 12 Posted February 13, 2002 </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (ConanOfOz @ Feb. 13 2002,06:56)</td></tr><tr><td id="QUOTE"></span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">You don't need a point of reference. The z position is supposed to be how far above ground. <span id='postcolor'> For the sake of my own edification... Given that this is being done as an initial state, and therefore in an initialization field, would the following form work? </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, 33]; this flyinheight 33 <span id='postcolor'><span id='postcolor'> Probably. I see no reason it shouldn't. Share this post Link to post Share on other sites