OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: MatthewKN on 06 Jun 2003, 19:08:31

Title: Placing Objects on Tables
Post by: MatthewKN on 06 Jun 2003, 19:08:31
How do I place an object (like a telephone, computer, or radio) on top of a table.
Title: Re:Placing Objects on Tables
Post by: Messiah on 06 Jun 2003, 19:20:02
place the object exactly over the table and then in the (e.g) phone's init line type:

Code: [Select]
this setpos [getpos this select 0, getpos this select 1, (getpos this select 2) +0.9]
+0.9 is the height increase.... fiddle with this to get the right height, but if memory serves me correctly, then this is about the right height.
Title: Re:Placing Objects on Tables
Post by: KyleSarnik on 07 Jun 2003, 16:46:55
I found that the exact height for placing things on tables is  more like 1.04  :gunman:
Title: Re:Placing Objects on Tables
Post by: Planck on 07 Jun 2003, 16:58:37
I think it all depends on the height of the ground the table is sitting on.


Planck
Title: Re:Placing Objects on Tables
Post by: Messiah on 07 Jun 2003, 17:04:28
indeed - and it can change from version to version - last time i placed an object on a desk was like 1.46  ::)