Collisions cause a collision reaction to occur. According to your example, this is probably not what you want.
I think what you are looking for is the EntityDistance or LinePick commands...
I think what you are looking for is the EntityDistance or LinePick commands...