distance

From Bohemia Interactive Community
Revision as of 12:53, 4 July 2006 by Planck (talk | contribs)
Jump to navigation Jump to search


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