OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: alelx on 14 Apr 2007, 23:01:59

Title: unit standing in heights, not airplanes..
Post by: alelx on 14 Apr 2007, 23:01:59
well, i want this soldier to stand up on a building or something, and theres a command for it to put on him and choose the height. thanks if u got that command.. post plz
Title: Re: unit standing in heights, not airplanes..
Post by: Mandoble on 14 Apr 2007, 23:15:07
unit setPos [x,y,height] do you mean?
Title: Re: unit standing in heights, not airplanes..
Post by: bedges on 15 Apr 2007, 08:32:31
this and many other frequently asked questions can be found in our FAQ - link at the top of this page.
Title: Re: unit standing in heights, not airplanes..
Post by: alelx on 15 Apr 2007, 10:54:14
thanks mate =), still is          unit setPos [x,y,height] the thing that says "height" there, is that where im supposed to put like 20 for 20 meters in the air?
Title: Re: unit standing in heights, not airplanes..
Post by: bedges on 15 Apr 2007, 11:14:48
from the FAQ (http://www.ofpec.com/FAQ/index.php)

"To instantly place a unit higher up (for example on the first floor of a building)

Code: [Select]
unit_name setpos [getpos unit_name select 0, getpos unit_name select 1, (getpos unit_name select 2) + 5]

That will place unit_name 5 metres in the air at his current position. When placing units within buildings, height values need to be experimented with."

if you are new to editing, i strongly suggest you read the faq - it saves a lot of time.