RealDocs

ACharacter::ClientCheatWalk

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

Description

Reliable Client RPC called from the server to force the character into walk movement mode as part of the cheat system. Restores normal ground movement after a fly or ghost cheat.

Caveats & Gotchas

  • This is a reliable Client RPC — the actual work is done in ClientCheatWalk_Implementation(), which can be overridden. Do not override ClientCheatWalk() directly.
  • This function exists only to support the server-side cheat console commands (e.g. the `walk` console command). It should not be called directly in gameplay code.

Signature

ENGINE_API void ClientCheatWalk();

Return Type

void

Example

Server-side cheat manager invoking walk mode C++
// Inside ACheatManager or a custom cheat manager:
void UMyCheatManager::Walk()
{
	if (ACharacter* MyChar = Cast<ACharacter>(GetOuterAPlayerController()->GetPawn()))
	{
		MyChar->ClientCheatWalk();
	}
}

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.