OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started 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:
unitname distance (getPos unitname)
-
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
-
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 ;)
-
fuckin awesome mandoble :D :cool2:
ill buy u a pint next time we meet :P ;)
LCD OUT
-
mmmmm
how about repeating the test, but this time getting:
unitname distance (unitname modelToWorld [0,0,0])