Call of Duty Script Documentation

closer(<reference>, <point a>, <point b>)


Module
Vector


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


Number of optional arguments: 0



Return to Function List