ACharacter::OnLaunched
#include "GameFramework/Character.h"
Access: public
Specifiers: UFUNCTIONBlueprintImplementableEventENGINE_API
Description
BlueprintImplementableEvent fired by LaunchCharacter immediately after the launch velocity is queued. Override this in Blueprint to react to the character being launched.
Caveats & Gotchas
- • This is a BlueprintImplementableEvent with no default C++ implementation. To handle launch reactions in C++, override LaunchCharacter() and call Super::LaunchCharacter() to preserve the Blueprint path.
- • The LaunchVelocity parameter reflects the requested velocity, not the final result — the actual velocity applied depends on the current character velocity and the bXYOverride/bZOverride flags.
Signature
ENGINE_API void OnLaunched(FVector LaunchVelocity, bool bXYOverride, bool bZOverride); Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| LaunchVelocity | FVector | The velocity that was applied to the character. | — |
| bXYOverride | bool | Whether the XY velocity was replaced rather than added to. | — |
| bZOverride | bool | Whether the Z velocity was replaced rather than added to. | — |
Return Type
void Example
Play a launch sound effect in Blueprint text
// In Blueprint subclass of ACharacter:
// Override OnLaunched event → connect to PlaySound node with a 'whoosh' cue.
// The LaunchVelocity pin can drive the volume pitch parameter. Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?