Jump to content
Sign in to follow this  
mrmanmrman

Raising/lowering objects

Recommended Posts

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

<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]

smile_o.gif

Share this post


Link to post
Share on other sites

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

Bah, you people and your shortcuts tounge_o.gif.  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

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

Ah yes, forgot to add that it is relative.

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  

×