OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: punisher on 14 Dec 2002, 21:47:06

Title: how to elevate objects
Post by: punisher on 14 Dec 2002, 21:47:06
well its all in the question!
please make it not complicated as i have just basic knoledge of codes
Title: Re:how to elevate objects
Post by: Captain Winters on 14 Dec 2002, 21:52:55
Use this in th object's init:

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

where 0.75 is the height you want the object!  ;D
_______________________________
_______________________________
Capn' Winters Out!
Title: Re:how to elevate objects
Post by: Kaliyuga on 14 Dec 2002, 21:55:16
Place this in the init field of an object

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

where x is the number of meters above ground you want the object to be