Difference between revisions of "distance"

From Bohemia Interactive Community
Jump to navigation Jump to search
m
m
Line 25: Line 25:
 
'''Example:'''
 
'''Example:'''
  
_dist = [[player]] '''distance''' [[leader]] [[player]]
+
_dist = [[player]] '''distance''' [[leader unit|leader]] [[player]]

Revision as of 18:09, 18 May 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