OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: cosjacket on 19 Feb 2008, 19:00:26

Title: laptop on table
Post by: cosjacket on 19 Feb 2008, 19:00:26
hi yer how can i put a laptop on a table   xx
Title: Re: laptop on table
Post by: Mandoble on 19 Feb 2008, 19:15:00
using setPos command.
is the table an object you placed on the map?
Title: Re: laptop on table
Post by: cosjacket on 19 Feb 2008, 23:18:16
yes and if possible  to put a laptop on to it
Title: Re: laptop on table
Post by: Mandoble on 20 Feb 2008, 00:43:33
well, if you have a laptop and a table, name the table table1 and put the following into its init field:
Code: [Select]
this setPos [getPos table1 select 0, getPos table1 select 1, 1]Adjust the last 1 until the laptop is just over the table.
Title: Re: laptop on table
Post by: Wolfrug on 20 Feb 2008, 10:07:10
Set the above in the LAPTOP's init field, note! (not the table's)  :yes:

Wolfrug out.
Title: Re: laptop on table
Post by: cosjacket on 20 Feb 2008, 13:51:56
many thanks xx :good: