OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started 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
-
unit setPos [x,y,height] do you mean?
-
this and many other frequently asked questions can be found in our FAQ - link at the top of this page.
-
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?
-
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)
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.