OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: ste150 on 31 Aug 2002, 19:52:13

Title: Computer On A Table
Post by: ste150 on 31 Aug 2002, 19:52:13
is the anyway to get a computer on a table?
  no matter wot i do the computer allways ends up under the table!
  any ideas? :-\
Title: Re:Computer On A Table
Post by: Messiah on 31 Aug 2002, 20:01:54
type this into the init field of the computer:

this setpos [getpos this select 0, getpos this select 1, (getpos this select 2) +0.9]

that should put it at the right height.... if not, change the 0.9 part to modify the height.

:thumbsup:
Title: Re:Computer On A Table
Post by: T.S.C.Plage on 31 Aug 2002, 20:06:58
Or:

this setpos [(getpos this select 0),(getpos this select 1),0.9]

You don't need to write the + it's only to make it clearer.
Title: Re:Computer On A Table
Post by: Tomb on 01 Sep 2002, 01:11:22




This setPos [GetPos This Select 0, Getpos This Select 1, 1]  :hmm:


Screw the (parantheses), this should do it.  :-*