RealDocs

ACharacter::K2_OnEndCrouch

function Engine Blueprint Since 4.0
#include "GameFramework/Character.h"
Access: public Specifiers: BlueprintImplementableEvent

Description

Blueprint event fired when the character finishes crouching. Implement this event in Blueprint subclasses to react to the character standing up, such as adjusting camera position or playing an animation.

Caveats & Gotchas

  • This event is the Blueprint entry point; the underlying C++ logic (capsule and mesh repositioning) runs in `OnEndCrouch` before this event is fired. You cannot cancel the stand-up from within this event.
  • The `DisplayName` is 'OnEndCrouch' in Blueprint, so Blueprint users will see it as `OnEndCrouch` not `K2_OnEndCrouch`. Be aware of this when reading Blueprint graphs.

Signature

ENGINE_API void K2_OnEndCrouch(float HalfHeightAdjust, float ScaledHalfHeightAdjust)

Parameters

Name Type Description Default
HalfHeightAdjust float Difference between the default capsule half-height and the crouched capsule half-height.
ScaledHalfHeightAdjust float The half-height difference after the component scale is applied.

Return Type

void

Example

Blueprint implementation to restore camera height text
// In a Blueprint subclass of ACharacter:
// Event OnEndCrouch (HalfHeightAdjust, ScaledHalfHeightAdjust)
//   → Set Relative Location (CameraComponent, Z = 64.0)  [standing eye height]

Version History

Introduced in: 4.0

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.