Home   Help Search Login Register  

Author Topic: unit standing in heights, not airplanes..  (Read 1165 times)

0 Members and 1 Guest are viewing this topic.

Offline alelx

  • Members
  • *
  • I'm a llama!
unit standing in heights, not airplanes..
« 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

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: unit standing in heights, not airplanes..
« Reply #1 on: 14 Apr 2007, 23:15:07 »
unit setPos [x,y,height] do you mean?

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
Re: unit standing in heights, not airplanes..
« Reply #2 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.

Offline alelx

  • Members
  • *
  • I'm a llama!
Re: unit standing in heights, not airplanes..
« Reply #3 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?

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
Re: unit standing in heights, not airplanes..
« Reply #4 on: 15 Apr 2007, 11:14:48 »
from the FAQ

"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.