OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: bob on 28 Aug 2002, 23:13:47

Title: Raise or Lower Building
Post by: bob on 28 Aug 2002, 23:13:47
Have the editor addon pack and sometimes the building steps are too high and the player just enters the graphic.

Is there a simple script that allows to "SetPos" or whatever of the Y Axis (Up/down) of the building?

Thx!

P.S.  I understand the x,y,z axis' in the game are different than normal specs...true?
Title: Re:Raise or Lower Building
Post by: Kaliyuga on 29 Aug 2002, 02:35:02
In order to sink yer building a little you'll need this syntax...
placed in the building's init field....

this setpos [getpos this select 0, getpos this select 1,x]

where x = meters above ground (of course you can use negative numbers to sink objects... you can also be very exact... i've used numbers out to the third or fourth decimal place for my x values to get it just right ;) )
as far as the x,y,z coordinates  goes...   x and y refer to points along the E/W and N/S axes of the map , I believe.. and the z value is what is used to calculate height above ground...

You can also check out the thread in setpos creations regarding the setpos command.. I went a little more into detail on that one ;) :toocool: