ok,
in the trigger, once you have found their lateral distance, for its condition:
dist <= 100
activation
[unit1,unit2] exec "unitdies.sqs"
which would like, kill the unit (cinematic) or something else
basically, this isn't used for much, whereas sine, cosine, and tangent are. and those are more complicated, and it's late over here. getting sleepy