I'm using a turret behaviour on my enemies to have them detect the player, turn to him and (on Turret shoot) resolve a path towards him.
Now I want them to stop at a certain distance from the player. So far I've been using a second turret behaviour, but this has a lot of side effects that I need to fix and is not ideal.
The easiest way I figure is using a dedicated collision check to fake a distance check in order to disable the approach behaviour. But I don't see an elegant way of assigning each enemy a sprite of type-depedant sizes, other than a seperate loop to place a radius sprite on each enemy each tick.
Any suggestions how best to go about a radius check per enemy?