distance – Talk
Jump to navigation
Jump to search
No edit summary |
m (position distance position) |
||
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]] | ||
== 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. |
Revision as of 22:20, 19 April 2007
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
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.