Home   Help Search Login Register  

Author Topic: 2 Questions  (Read 669 times)

0 Members and 1 Guest are viewing this topic.

R3dF0x

  • Guest
2 Questions
« on: 01 Jan 2003, 17:05:28 »
1. How do u get the height above ground?  Do u need getpos?

2. How do u write a script that tells you which unit set off a trigger, or what kind they are, eg ship plane soldier?

Offline icarus_uk

  • Members
  • *
  • LiarLiarPants Inflame True
    • [furryclan]
Re:2 Questions
« Reply #1 on: 01 Jan 2003, 18:03:21 »
To find the height;

Getpos UnitName Select 2

Returns the height of the unit above ground level.  If you want the height above sea level you have to triangulate the units position.  There are scripts to dothis in the snippets section (assuming they are still there).


R3dF0x

  • Guest
Re:2 Questions
« Reply #2 on: 01 Jan 2003, 19:16:16 »
Thanks for that.  But how do i set the height then?


Setpos UnitName Select 2 HEIGHT ?