Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/GameFramework > API/Runtime/Engine/GameFramework/ACharacter
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/GameFramework/Character.h |
| Include | #include "GameFramework/Character.h" |
UFUNCTION (BlueprintNativeEvent, Category=Character)
void OnWalkingOffLedge
(
const FVector & PreviousFloorImpactNormal,
const FVector & PreviousFloorContactNormal,
const FVector & PreviousLocation,
float TimeDelta
)
Remarks
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.
Parameters
| Name | Description |
|---|---|
| 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. |