Call of Duty Script Documentation
closer(<reference>, <point a>, <point b>)
ModuleVector
Summary
Tests which of two points is the closest. Returns true if point a is closer to the reference than point b
Example
if( closer( center, models[j].origin , models[i].origin ))...
Minimum Number of arguments: 3
1 : <reference> The base position
2 : <point a> The first point
3 : <point b> The second point
Number of optional arguments: 0
Return to Function List