MrZig 0 Posted January 7, 2004 Is it possible to say set a soldiers height the same height as a helicopter? I tried <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">_height = (getpos plane select 2) man1 setpos [(getpos plane select 0), (getpos plane select 1),_height] but it doesn't work, he goes on the ground, I want it for an eject script, and I searched, I just want an answer to this, is this possible and if so, how? Thanks! Share this post Link to post Share on other sites
Harnu 0 Posted January 7, 2004 <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">_height = (getpos plane select 2) man1 setpos [(getpos plane select 0), (getpos plane select 1), (getpos plane select 2) + _height] I believe that should work. Edit: If you post the whole script it might be easier to understand to whole thing. Share this post Link to post Share on other sites
MrZig 0 Posted January 7, 2004 That is, basicly I just want to find out how to set a units pos at a different objects pos. I looked at a few scripts, and tried em with the BIS chinook, they worked, but when I tried em with martins DC3, I was just at the ground. Share this post Link to post Share on other sites
MrZig 0 Posted January 7, 2004 Hmm tested it with teh DC3 and no dice Share this post Link to post Share on other sites
Harnu 0 Posted January 7, 2004 Is that the script you are running? Â That's not what you need. Â Theres a few things missing. Are you just trying to set the units position right at the plane and then let them fall? Do you want them in the plane to to eject? You said you needed it for an eject script, how are they ejecting if they aren't in anything? Share this post Link to post Share on other sites
MrZig 0 Posted January 7, 2004 Because I just want them to be at the position of the aircraft, then I'll camcreate a parachute for them to move in to, cause with martin's DC3, when you eject you get flung up real high in the sky, and I want a way to bypass that, I just need to know if it's possible, cause with the BIS chinook that works i think, but with the DC3 it doesn't. Share this post Link to post Share on other sites
Harnu 0 Posted January 7, 2004 edit, testing now. THe script from this post didn't work Share this post Link to post Share on other sites
Harnu 0 Posted January 8, 2004 I kept getting a goofy "type any, expected number" when I'm using my script. But I did get it to work through a trigger. Just using the mans name and setposing him to the plane in the trigger activation line. And then you can add any desired height. Share this post Link to post Share on other sites
MrZig 0 Posted January 8, 2004 I tried <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">man1 setpos [(getpos plane select 0), (getpos plane select 1), (getpos plane select 2) in a BIS chinook, I was in the air at it's position, I then tried with Martins DC3, and I was on the ground, any way to make it compatible? Share this post Link to post Share on other sites
bmgarcangel 0 Posted January 8, 2004 Why not just do it this way <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),6]; Thats the way i'd do it and i'd edit it according to whatever height the aircraft i'm trying to get into might be at Share this post Link to post Share on other sites
MrZig 0 Posted January 8, 2004 That works, but to a certain extent. It will only truly work if I can make the aircraft fly 100 height above sea level, not above ground level, cause if it's ground level (which they fly with flyinheight) it goes up and down according the the terrain, any way to make it only fly at 100 feet sea level? Share this post Link to post Share on other sites
bmgarcangel 0 Posted January 8, 2004 Okie Then make the plane flying then, use the x,y,z thing to make it go to a certian height then make it so that with that you make the soldier at the same height and adjust accordingly so you are where you want him to be Share this post Link to post Share on other sites
MrZig 0 Posted January 8, 2004 As I just said if you set to a height, it follows the ground height, not sea height, so it will be going up and down, and I think if you setpos somethings height, it bases it off of the sea, so that doesn't really work.. Share this post Link to post Share on other sites
Harnu 0 Posted January 9, 2004 I tried<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">man1 setpos [(getpos plane select 0), (getpos plane select 1), (getpos plane select 2) in a BIS chinook, I was in the air at it's position, I then tried with Martins DC3, and I was on the ground, any way to make it compatible?<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">man1 setpos [(getpos plane select 0), (getpos plane select 1), (getpos plane select 2) + 80] You can change 80 to whatever hieght is needed. PS. Just for sake of seeing it, can you post your whole script(s) you use? It's easier for me to help when I can fiddle till it works like with my own stuff lol Share this post Link to post Share on other sites
MrZig 0 Posted January 9, 2004 Agh you don't get it do you? If the plane sees a mountain, and instantly goes up, and it's above 80 feet sea level (which setpos sets at im perrty sure) then I'll be underneath it, I want it to fly without goin up or down, so I can eject right from it. Now, is there a way i can edit the model so it allows me to just use getpos select 2? BAS chinooks do it with their cargo script somehow. Share this post Link to post Share on other sites
bmgarcangel 0 Posted January 9, 2004 Then you adjust it so that you'll be higher or lower If you dont notice that you can make it so that you'll be in the plane instantly too before it moves anywhere Share this post Link to post Share on other sites
Harnu 0 Posted January 10, 2004 Agh you don't get it do you?If the plane sees a mountain, and instantly goes up, and it's above 80 feet sea level (which setpos sets at im perrty sure) then I'll be underneath it, I want it to fly without goin up or down, so I can eject right from it. Now, is there a way i can edit the model so it allows me to just use getpos select 2? BAS chinooks do it with their cargo script somehow. Then just adjust the 80 if you need to get it working right. And setposing in the editor sets it that much higher relative to the ground, not sea level. Thus why keeping the constant height with the plane that does fly over sea level. Share this post Link to post Share on other sites
MrZig 0 Posted January 10, 2004 I don't want to make sure 40+ soldiers get out of theur C47 with editing their eject height when they eject.. I'm doing a normandy 1944 82nd airborne mission, and I want each soldier to jump out right.. I guess the island doesn't go up or down much.... Isn't their na easier way though? BAS chinooks has it in theirs, is there a way to mod the addon? So I can use "getpos plane select 2" ? Share this post Link to post Share on other sites
Junker 0 Posted January 10, 2004 i thought the simple This getpos(setpos Plane) would work Share this post Link to post Share on other sites