Jump to content
Sign in to follow this  
Grinman

Changing and object's orientation to be flat

Recommended Posts

Hi guys

In a mission I'm working on I have some quite heavy sandbag bunkers and whatnot, but what I want to to know is can I turn something from the editor update (say, a fence) to be flat?

Like, from | to _

A snippet of code for the init line would be perfect, lol

Share this post


Link to post
Share on other sites

Think you need to look at the setVectorUp command, thats how you would straighten a leaning wall. It takes a 3d array, so you should be able to tip over a wall/fence.

Cheers

GC

Share this post


Link to post
Share on other sites

SetVectorUp[ 0,1,0 ];

SetVectorDir[ 0,0,-1 ];

Share this post


Link to post
Share on other sites

Chances are you'll also need to adjust the height of the object as well, so remember to use setPos before using setVectorDir/Up (because setPos resets their orientation).

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  

×