distance: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 4: Line 4:
[[Category:Scripting Commands ArmA|D]]
[[Category:Scripting Commands ArmA|D]]


back to [[Scripting_Reference#D|COMREF]]


<h2 style="color:#000066">'''''obj1'' distance ''obj2'''''</h2>
<h2 style="color:#000066">'''''obj1'' distance ''obj2'''''</h2>

Revision as of 12:53, 23 April 2006


obj1 distance obj2


Operand types:

obj1: Object

obj2: Object

Type of returned value:

Number

Description:

Compute distance between the two objects.


Example:

_dist = player distance leader player