RealDocs

ACharacter::ClientCheatGhost

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

Description

Reliable Client RPC sent from the server to switch the character into ghost (noclip) movement mode as part of the cheat system.

Caveats & Gotchas

  • The actual logic is in ClientCheatGhost_Implementation() — override that, not this RPC stub.
  • Ghost mode disables collision-based movement blocking on the client. Since the server still enforces collision in authoritative mode, the client may appear to pass through geometry while the server lags behind or refuses the position.

Signature

ENGINE_API void ClientCheatGhost();

Return Type

void

Example

Enable ghost mode from a custom cheat manager C++
void UMyCheatManager::Ghost()
{
	if (ACharacter* MyChar = Cast<ACharacter>(GetOuterAPlayerController()->GetPawn()))
	{
		MyChar->ClientCheatGhost();
	}
}

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.