If you need more performance than target switching and checking with IsActionInRange provides then check out CheckInteractDistance. It has certain limits and will not work for all ranges, but it is several orders of magnitude faster than target switching/scanning.
| Graph IRI | Count |
|---|---|
| http://dbkwik.webdatacommons.org | 4 |