Category: Arithmetics
Since engine version: 4.6.5.0 CP
global func ObjectDistance(pObj1, pObj2)
{
var dx = GetX(pObj1) - GetX(pObj2);
var dy = GetY(pObj1) - GetY(pObj2);
return(Sqrt(dx*dx+dy*dy));
}
ObjectDistance.