How to override BTTask_MoveTo so it accepts dynamic radius?

It was mentioned here that to have a MoveTo node that uses a dynamic value for radius, it is necessary to devire from BTTTask_MoveTo and make it call a function on the AI.

What is the best way to do this?

Thank you.