Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: May someone do a quick getPos test?  (Read 1734 times)

0 Members and 1 Guest are viewing this topic.

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
May someone do a quick getPos test?
« 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)

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re: May someone do a quick getPos test?
« Reply #1 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
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: May someone do a quick getPos test?
« Reply #2 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  ;)
« Last Edit: 09 Jul 2007, 12:30:20 by Mandoble »

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re: May someone do a quick getPos test?
« Reply #3 on: 09 Jul 2007, 15:23:21 »
fuckin awesome mandoble :D  :cool2:

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

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: May someone do a quick getPos test?
« Reply #4 on: 09 Jul 2007, 16:42:50 »
mmmmm
how about repeating the test, but this time getting:
unitname distance (unitname modelToWorld [0,0,0])