ObjectDistance

Category: Objects
Since engine version: 4.6.5.0 CP

Description

Returns the distance between two objects. If pObj is 0 the distance between the calling object and pObj2 is measured.

Syntax

int ObjectDistance (object pObj2, object pObj);

Parameters

pObj2:
Second object.
pObj:
[opt] First object. Can be 0 in local calls.
See also: Cos, Distance, Sin, Sqrt
jwk, August 2002