distance – Talk

From Bohemia Interactive Community
Jump to navigation Jump to search
m (position distance position)
No edit summary
 
Line 6: Line 6:


In OFP there's quite a big mistake with small distances (less 1m). Did anybody checked if it is  fixed in arma ?--[[User:Bdfy|bdfy]]
In OFP there's quite a big mistake with small distances (less 1m). Did anybody checked if it is  fixed in arma ?--[[User:Bdfy|bdfy]]
Arma2OA doesn't seem to support locations? But, "[[locationPosition]] location" works. [[User:Shuko|Shuko]] 19:00, 20 July 2010 (CEST)


== position distance position ==
== position distance position ==

Latest revision as of 19:00, 20 July 2010

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.