OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: Mandoble on 09 Jul 2007, 11:33:12

Title: May someone do a quick getPos test?
Post by: Mandoble on 09 Jul 2007, 11:33:12
Place a unit above the roof or in different floors of different buildings and for each one get:
Code: [Select]
unitname distance (getPos unitname)
Title: Re: May someone do a quick getPos test?
Post by: h- on 09 Jul 2007, 12:00:17
Eh...

So the distance gets bigger the higher you go in the building..
The change in getpos height is like 0.00000xxx meters, but the distance grows by meters between floors... ???

Do I smell getPosInBuilding function coming?  :D
Title: Re: May someone do a quick getPos test?
Post by: Mandoble on 09 Jul 2007, 12:02:25
So, did distance between unit and its position increase?

EDIT: So it does. Quite interesting. That means the real height of a unit is its current height plus the distance between the unit and its position. May be this is the data LCD and Mr. Peanut were looking for  ;)
Title: Re: May someone do a quick getPos test?
Post by: LCD on 09 Jul 2007, 15:23:21
fuckin awesome mandoble :D  :cool2:

ill buy u a pint next time we meet :P ;)

LCD OUT
Title: Re: May someone do a quick getPos test?
Post by: Mandoble on 09 Jul 2007, 16:42:50
mmmmm
how about repeating the test, but this time getting:
unitname distance (unitname modelToWorld [0,0,0])