OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: schuler on 04 Nov 2007, 06:03:07

Title: setpos west and in air
Post by: schuler on 04 Nov 2007, 06:03:07
to get thingo in the air and to the west on hb, select 0 – 4 “is west” code is-
thingo setpos [(getpos hb select 0) -4, (getpos hb select 1) + 2] ?height?
but in the air 25m too
 :scratch:
Title: Re: setpos west and in air
Post by: Spooner on 04 Nov 2007, 12:35:48
4 metres West and 2 meters North of hb, but 25 m above the ground (not necessarily 25m above hb):
Code: [Select]
thingo setpos [(getpos hb select 0) -4, (getpos hb select 1) + 2, 25];
Title: Re: setpos west and in air
Post by: schuler on 04 Nov 2007, 12:40:38
thanks Spooner, thats what i wanted!   i forgot the north part in there
               cheers schuler  ;)