ComputeFloorDist function not accessible?

I want to get the distance from the bottom of capsule to the ground floor.

I was told that I should use computefloordist() function

But it seems that this function is protected and not accessible.

How to solve this problem?