Jump to content
Sign in to follow this  
jpfennig

placing flat/level buildings or objects

Recommended Posts

Hey Guys,

I am wondering if there is a way to place an object (eg. bunker, rampart,etc.) without having it try and set to the terrain contours. Have messed with the "vectorup" command but haven't really got a handle on it.

Is there away to override the default and get it to spawn level?

If not can someone give me a brief rundown of how to use the vector command effectively?

Thanks

Share this post


Link to post
Share on other sites

Unsure exactly what you are asking, but I think you have used the setVectorUp command...

If not if you want your object to be level:

this setVectorUp [0,0,1]

That will keep the object from leaning, tilting, etc.

If this is not what you are looking for ask again and ill be glad to help :)

Share this post


Link to post
Share on other sites

Jesus, didn't realise it was that simple. Thanks icfhoop!

Unsure exactly what you are asking, but I think you have used the setVectorUp command...

If not if you want your object to be level:

Code:

this setVectorUp [0,0,1]

That will keep the object from leaning, tilting, etc.

If this is not what you are looking for ask again and ill be glad to help

---------- Post added at 01:32 PM ---------- Previous post was at 01:22 PM ----------

using that vector command, how then do I raise lower the object keeping the same vector?

Tried placing...

this SETPOS [getpos this select 0, getpos this select 1, -0.5];

..after but it reverts back to the ground contours. Any ideas?

Share this post


Link to post
Share on other sites

It looks like you wrote it in wrong, try this:

this setpos [(getpos this select 0), (getpos this select 1), -0.5] ; this setVectorUp [0,0,1]

Another thing you could try is to place the bunker on top of buildings using this:

myTower =  getPos this nearestObject <Id of building>;
this setpos [(getpos myTower select 0), (getpos myTower select 1), 10.48];
this SetVectorUp [0,0,1];

Where it says <id of building> just find the object id on the map and dont use the <>. Name your tower or bunker "mytower".

Edited by cobra4v320

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  

×