# ACharacter resize UCapsuleComponent at runtime

**URL:** <https://forums.unrealengine.com/t/acharacter-resize-ucapsulecomponent-at-runtime/445806>\
**Category:** Community & Industry Discussion\
**Tags:** capsulecomponent, resize, unreal-engine, runtime, question\
**Created:** [March 22, 2019, 11:02pm UTC](https://forums.unrealengine.com/t/acharacter-resize-ucapsulecomponent-at-runtime/445806 "2019-03-22T23:02:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hellrunner2k](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Hellrunner2k](https://forums.unrealengine.com/u/Hellrunner2k)\
**Post date:** [March 22, 2019, 11:02pm UTC](https://forums.unrealengine.com/t/acharacter-resize-ucapsulecomponent-at-runtime/445806/1 "2019-03-22T23:02:37Z")

</div>

Hey there…  
So I expanded ACharacter and i’m calling my own setup function on BeginPlay() after the super. The setup function is also called at arbitrary times.

In the setup function I want to update the capsule component. I do this via GetCapsuleComponent()-\>SetCapsuleSize(MyRad, MyHalfheight, false);

then on the CharacterMovementComponent i set the CrouchedHalfHeight = MyHalfheight\*.5f;

That initialy works fine until i actually crouch and then unCrouch. The unCrouch resets the Capsule to it’s default values with wich it got constructed.

Do i need to tell the CharacterMovement about it somehow? (I can’t find any Indicator in the Character.cpp that i have to; it apparently pulls directly from the capsuleComponent)  
What am i missing?
