mrmanmrman 0 Posted May 22, 2004 Totally forgotten how to do this, used to know. I need to know how i would lower an object (so it goes below ground). For example with the resistance bridge object its quite high when its placed ontop of the ground, i want to lower it so the bridge surface is accessable from land (ie on the side of a hill) Share this post Link to post Share on other sites
Nathanz 0 Posted May 22, 2004 <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), 9] Share this post Link to post Share on other sites
MrZig 0 Posted May 22, 2004 Actually, for an in depth.. <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), -1] Select 0 I think is N/S, I dunno, and select 1 is E/W I think. The final one (-1) is how much you want it below ground or above ground -2 will put it 2 metres below ground, and a normal 2 will put it 2 metres above ground. Though you maybe shoulda searched before posting this ;) Share this post Link to post Share on other sites
Harnu 0 Posted May 22, 2004 Bah, you people and your shortcuts . Â I always got into the habit of addin the z part of the line this setpos [getpos this select 0, getpos this select 1, (getpos this select 2) + 10] Getpos this select 0 = x coordinates = East - West Getpos this select 1 = x coordinates = North - South Getpos this select 2 = x coordinates = Depth - Elevation All changes are relative. Share this post Link to post Share on other sites
MrZig 0 Posted May 22, 2004 Yes but if it's a plane or something already in the air, and you add that, it'll only go + or - from it's current position Share this post Link to post Share on other sites
Harnu 0 Posted May 22, 2004 Ah yes, forgot to add that it is relative. Share this post Link to post Share on other sites