distance – Talk

From Bohemia Interactive Community
Revision as of 18:00, 20 July 2010 by Miika Jarvinen (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Did you know that the distance function also works with position arrays? It even accepts an object and a position array combined.

-Joris 21:54, 17 December 2006 (CET)

Cool, thanks! Included it. :) --raedor 22:17, 17 December 2006 (CET)

In OFP there's quite a big mistake with small distances (less 1m). Did anybody checked if it is fixed in arma ?--bdfy

Arma2OA doesn't seem to support locations? But, "locationPosition location" works. Shuko 19:00, 20 July 2010 (CEST)

position distance position

distance seems to consider only over the ground level positions (sadly).

So, getPos player distance [getPos player select 0, (getPos player select 1)-100, getPos player select 2]would return 100 only if player is over the sea and there is no land 100 South of him.