Forum Jump :

Author Message


Posts: 3
Rank:


Level: Member

Country: us
Location:
Occupation:
Age:
In-game name:

 
#1 Posted at 2007-09-17 20:55        
     
I haven't found any topics that answer this question:

How do I place a building in Editor so that it stays flat?

I want to build a large city on a flat surface and the only available flat surfaces are runways...which are long and narrow. I can change the height that the building is placed, but even 20 meters in the air it still follows the terrain. I get buildings leaning into each other. Does anyone know how to get editor placed buildings to ignore terrain?

P.S. I'd make my own map in Visitor if I could figure out how to use it. So far following the manual and "How to make a simple landscape" tutorial doesn't help me. =(

A quick fix would be if someone can make me a Rhamadi sized island that was flat and that I can use in Visitor to place objects =P

Thanks in advance!


Author Message

Myke  

Mc Script


Posts: 1034
Rank:


Level: Member

Country: ch
Location: St. Gallen
Occupation: Armaholic addon tester
Age: 47
In-game name: Myke

 
#2 Posted at 2007-09-17 21:09        
     
Simple as this: in the init line of the buildings write:
this setvectorup [0,0,1]
This should set the buildings straight. Maybe you'll run into problems that a corner may bee on air (you know what i mean) then a
this setpos [getpos this select 0, getpos this select 1, -1]
should solve this issue aswell. You might have to play around with the -1 but you get the idea.

And just for fun: try this on a building:
this setvectorup [0,0,-1]


Myke out


Advertisement


Author Message


Posts: 3
Rank:


Level: Member

Country: us
Location:
Occupation:
Age:
In-game name:

 
#3 Posted at 2007-09-17 21:31        
     
Thanks Myke! I'll try it when I get home tonight, but I have faith. If Code 3 does what i think it does it'll probably answer another question I had forming in my mind. Two birds with one stone.


Author Message


Posts: 3
Rank:


Level: Member

Country: us
Location:
Occupation:
Age:
In-game name:

 
#4 Posted at 2007-09-18 16:30        
     
Myke, it didn't work like I'd hoped. setVectorUp only changes the textures of the object. I'm using the podesta_cube's because I want to run on them. When I use setVectorUp they "look" like they're all lined up but the invisible physical object is still in the same place. I kept running into invisible walls.

Try it. setVectorUp [0,1,0] The building is turned 90 degrees up...but if you put stairs up to the place it used to be you can walk on an invisible surface and straight through the graphics.

I'm attempting something like Paraiso using the podesta_cube and cubelong blocks so I can put houses at different heights.

setVectorDir didn't change this at all when I tried it.


Author Message


Posts: 233
Rank:


Level: Member

Country: uk
Location: Deviant Wing
Occupation:
Age: 33
In-game name:

 
#5 Posted at 2007-09-25 00:10        
     
Im stuck with this now :(

This might sound weird, but im trying to make a mission in the skies! :eek

Im using the same object as amadis77, as my starting point for the base so its nice and flat to start off with. But the little s*** wont align properly :((

Im building the base at 500 altitude over the sea. Ive also tried building over land but the same thing happens. Ive also tried using setVectorUp [0,0,1] this also does nothing :(

anymore ideas? :con

BTW, I understand what your talking about Myke, and that will work. Is there not an easier way so objects ignore the terrain levels?


Author Message


Posts: 2
Rank:


Level: Member

Country: us
Location: Houston, Tx
Occupation: Tx Army National Guard
Age: 27
In-game name:

 
#6 Posted at 2014-10-05 07:01        
     
I tried this but when I go into the building Im standing about a foot off the ground. ive never had this problem where the slope of the land puts the structure at a cant.