# Struggling to get access to GeScaledCapsuleRadius() in UE5.

**URL:** <https://forums.unrealengine.com/t/struggling-to-get-access-to-gescaledcapsuleradius-in-ue5/1147648>\
**Category:** C++\
**Tags:** newbie, unreal-engine, CPP, question\
**Created:** [April 28, 2023, 6:27pm UTC](https://forums.unrealengine.com/t/struggling-to-get-access-to-gescaledcapsuleradius-in-ue5/1147648 "2023-04-28T18:27:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![JuanItalian](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/juanitalian/32/691238_2.png) [@JuanItalian](https://forums.unrealengine.com/u/JuanItalian)\
**Post date:** [April 28, 2023, 6:27pm UTC](https://forums.unrealengine.com/t/struggling-to-get-access-to-gescaledcapsuleradius-in-ue5/1147648/1 "2023-04-28T18:27:14Z")

</div>

Hiya I am kinda new to developing in Unreal but come from a programing background. I have messed around with the blueprints and am trying to learn how to use c++ with the engine which is what lead to this question.

I am following a tutorial that is all in blueprint and trying to convert it to c++ but I am struggling to access the GetScaledCapsuleRadius() function that exists. It is easy to get in blueprints as you just need access to the Capsule component. When I try to go this in c++ I can get the Capsule Component but can’t call any functions from it. I just get a warning saying pointer to incomplete class type “UCapsuleComponent” is not allowed. Is there a way to call this function and am I just doing something wrong?

```auto
ACharacter* player = UGameplayStatics::GetPlayerCharacter(GetWorld(), 0);
player->GetCapsuleComponent()->GetScaledCapsuleRadius();

```

---

<div class="post-metadata">

**Author:** ![Zombie.SoC1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Zombie.SoC1](https://forums.unrealengine.com/u/Zombie.SoC1)\
**Post date:** [December 20, 2024, 4:51pm UTC](https://forums.unrealengine.com/t/struggling-to-get-access-to-gescaledcapsuleradius-in-ue5/1147648/2 "2024-12-20T16:51:37Z")

</div>

#include “Components/CapsuleComponent.h”  
could work in the script you want to call it.
