Call of Duty Script Documentation

lengthsquared(<vector>)


Module
Vector


Summary


Returns the squared vector length for the given vector - this is cheaper than the actual vector length as it doesn't involve a square root

Example


dist2 = lengthsquared(models[j].origin - center);

Minimum Number of arguments: 1


Number of optional arguments: 0



Return to Function List