Difference between revisions of "distance"

From Bohemia Interactive Community
Jump to navigation Jump to search
 
Line 1: Line 1:
<h2 style="color:#000066">''obj1 '''''distance ''obj2'''''</h2>
+
back to [[Scripting_Reference#D|COMREF]]
 +
 
 +
<h2 style="color:#000066">'''''obj1'' distance ''obj2'''''</h2>
 +
 
  
 
'''Operand types:'''
 
'''Operand types:'''
  
obj1: [[Object]]
+
'''obj1:''' [[Object]]
  
obj2: [[Object]]
+
'''obj2:''' [[Object]]
  
 
'''Type of returned value:'''
 
'''Type of returned value:'''
Line 13: Line 16:
 
'''Description:'''
 
'''Description:'''
  
Compute distance between two objects.
+
Compute distance between the two objects.
 +
 
  
 
'''Example:'''
 
'''Example:'''
  
_dist = player '''distance''' leader player
+
_dist = [[player]] '''distance''' [[leader]] [[player]]

Revision as of 12:07, 16 April 2006

back to COMREF

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