Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/ACharacter
Description
Event fired when the Character is walking off a surface and is about to fall because CharacterMovement->CurrentFloor became unwalkable. If CharacterMovement->MovementMode does not change during this event then the character will automatically start falling afterwards.
Z velocity is zero during walking movement, and will be here as well. Another velocity can be computed here if desired and will be used when starting to fall.
| Name | OnWalkingOffLedge |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/GameFramework/Character.h |
| Include Path | #include "GameFramework/Character.h" |
UFUNCTION (BlueprintNativeEvent, Category=Character)
void OnWalkingOffLedge
(
const FVector & PreviousFloorImpactNormal,
const FVector & PreviousFloorContactNormal,
const FVector & PreviousLocation,
float TimeDelta
)
Parameters
| Name | Remarks |
|---|---|
| PreviousFloorImpactNormal | Normal of the previous walkable floor. |
| PreviousFloorContactNormal | Normal of the contact with the previous walkable floor. |
| PreviousLocation | Previous character location before movement off the ledge. |
| TimeTick | Time delta of movement update resulting in moving off the ledge. |