Difference between revisions of "distance"

From Bohemia Interactive Community
Jump to navigation Jump to search
m
m
Line 5: Line 5:
  
  
<h2 style="color:#000066">'''''obj1'' distance ''obj2'''''</h2>
+
<h2 style="color:#000066">'''''obj1 or pos1'' distance ''obj2 or pos2'''''</h2>
  
  
 
'''Operand types:'''
 
'''Operand types:'''
  
'''obj1:''' [[Object]]
+
'''obj1 or pos1:''' [[Object]] or [[Array]]
  
'''obj2:''' [[Object]]
+
'''obj2 or pos2:''' [[Object]] or [[Array]]
  
 
'''Type of returned value:'''
 
'''Type of returned value:'''
Line 20: Line 20:
 
'''Description:'''
 
'''Description:'''
  
Compute distance between the two objects.
+
Compute distance between the two objects or positions.
  
  

Revision as of 12:53, 4 July 2006


obj1 or pos1 distance obj2 or pos2


Operand types:

obj1 or pos1: Object or Array

obj2 or pos2: Object or Array

Type of returned value:

Number

Description:

Compute distance between the two objects or positions.


Example:

_dist = player distance leader player