Limit AI following radius

Hello All,

I’ve setup a simple Behavior Tree for an enemy to constantly follow my player character as follows:

It works and everything, but I was wondering what would be the best way to limit the enemy’s activities to only activate when the player is closer than a specified distance from the enemy and deactivate again when the player is far. By “best” I mean in terms of performance (for instance, it doesn’t need to check for it every tick).

Should I do it using a service calling every certain amount of seconds or something like that?

Thanks!