Call of Duty Script Documentation

distancesquared(<point1>, <point2>)


Module
Vector


Summary


Returns the squared distance between two points - this is cheaper than the actual distance as it doesn't involve a square root

Example


dist2 = distancesquared(models[j].origin, center);

Minimum Number of arguments: 2


Number of optional arguments: 0



Return to Function List