OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: cirkut5732 on 24 Feb 2005, 04:26:47

Title: putting buildings on bases
Post by: cirkut5732 on 24 Feb 2005, 04:26:47
hello everyone whats the command for putting buildings on bases, im building a barracks on a slight slope and when you enter the barracks you can see the ground thru the bottom LOL!!
so i need to raise it up i believe any help??
Title: Re:putting buildings on bases
Post by: Planck on 24 Feb 2005, 05:05:14
This is happening because the ground where you are placing the building is not flat.

Either it is on a slope or there is a slight rise somewhere in the area of placement.

If you place your building in the editor, you can then use the init field for the building to raise it slightly.

However, depending on how much you have to raise it, you may come across another problem......from the outside you might find one or two edges of the building are floating a few centimetres above the ground.

Anyway......

buildingname setpos (getpos (buildingname select 0), getpos (buildingname select 1), getpos (buildingname select 2) + X)

or

this setpos (getpos (this select 0), getpos (this select 1), getpos (this select 2) + X)

Syntax may be a bit wobbly.

X of course is the height to raise it by.
You will have to experiment till you get the height you want.......start with something like 0.5 and work up or down as the case may be.


Planck
Title: Re:putting buildings on bases
Post by: Dubieman on 24 Feb 2005, 05:24:29
Some buildings have walls that go underground 5 meters or so, though it won't matter if you raise it to high, you won't be able to get to the doors on the downhill side. :P