UKMERC 10 Posted May 17, 2010 Is their a way of using either one of these commands or another way to get the sandbag walls to lay flat on the ground. as i want to make the deer stand like a sangar iv done the outer walls i just need to do the roof and it needs to lay flat Ive tryed what i can think of but no luck yet. Share this post Link to post Share on other sites
f2k sel 164 Posted May 18, 2010 Try vectors. this setVectorDirAndUp [[0, 0, 1],[0, 1, 0]] place in the objects init, you may need to use setpos to adjust the height as some objects float. I only guess the vector numbers I have no idea how they work it's just trial and error. Share this post Link to post Share on other sites
galzohar 31 Posted May 18, 2010 I think if you just use setVectorUp [x, y, z] then basically you're giving it a unit vector in 3d space towards which the object's original z axis points. [0,0,1] would point the object to where it would normally point if you would've placed it on flat ground. Using [x,y,0] for some x and y values (most likely 1 of them being 0) will probably give you the desired result. Keep in mind that most of these objects have a "bottom" that's supposed to somehow combine with the ground, so when you rotate them that bottom will be up in the air and it'll look extremely weird as the bottom side of those objects was never designed to be visible. So I'm not really sure what you're trying to do here, it may not be possible to get it done "right". Share this post Link to post Share on other sites
UKMERC 10 Posted May 18, 2010 (edited) Thank you lads, it works just fine for what i want to achieve. heck if it werent for people like you i would be stuck. Edited May 18, 2010 by UKMERC Share this post Link to post Share on other sites
f2k sel 164 Posted May 18, 2010 The thing that confuses me with vectors is that bis use [x,z,y] and formulas seem to use [x,y,z] Have BIS made a mistake or is it just the description that's wrong?. also to flip an object upside you can use car setVectorUp [-(vectorUp car select 0), -(vectorUp car select 1), -(vectorUp car select 2)] placed in an objects init and named car There was a SPON_View_vector script but it seems to be no longer available. Share this post Link to post Share on other sites