Jump to content
Sign in to follow this  
MWPA

Is there an "auto-leveling" script or function available?

Recommended Posts

I've been placing buildings and other structures in the editor and often they follow the contour of the ground. It's very obvious with radar towers and other tall objects. I've read about setVectorUp and setVectorDir in Mr.Murray's guide but they sound a bit difficult so I've been concentrating on learning other scripting commands. I've read about some functions that take some of the difficulty out of the process but I haven't tried them either.

What I'm hoping to find is something that can be called from the init field of an object that will "zero" its vectors so that the object sits level on the ground. From that point I can set its height and any visible empty space left underneath can be filled with the giant concrete slabs in the Training Objects category or the H-Barriers perhaps.

Any help would be deeply appreciated.

---------- Post added at 04:00 PM ---------- Previous post was at 03:56 PM ----------

Also: how do I move this to the appropriate section, I just realized this should be in the Scripting Help forum

Share this post


Link to post
Share on other sites

Tell a mod so he can move it. There is no auto level script addon. At least not yet. There is a comand that you can call that will even the building out.

Share this post


Link to post
Share on other sites

Thanks, just reported it. It took a while to find the "report post" button.

Share this post


Link to post
Share on other sites

This should level stuff up.

objectname  setvectorup [0,0,1];

Share this post


Link to post
Share on other sites

Thank you F2k Sel, it's easier than I thought

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  

×