RealDocs

UCharacterMovementComponent::IsWalking

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

Description

Returns true if the character is currently in a ground movement mode (Walking or NavWalking).

Caveats & Gotchas

  • This is a thin wrapper around IsMovingOnGround() — it also returns true during MOVE_NavWalking, not just the literal MOVE_Walking mode.
  • Also requires UpdatedComponent to be valid; if the component hasn't finished setup yet this returns false even if MovementMode is set to MOVE_Walking.

Signature

bool IsWalking() const

Return Type

bool

Example

Play footstep audio only while walking C++
void AMyCharacter::Tick(float DeltaTime)
{
	Super::Tick(DeltaTime);

	if (GetCharacterMovement()->IsWalking() && GetVelocity().SizeSquared() > FMath::Square(10.f))
	{
		UpdateFootstepTimer(DeltaTime);
	}
}

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.