ACharacter::ClientCheatGhost_Implementation
#include "GameFramework/Character.h"
Access: public
Specifiers: virtualENGINE_API
Description
Implementation body for the ClientCheatGhost RPC. Puts the character into ghost (noclip) movement mode on the client. Override to customize ghost cheat behavior.
Caveats & Gotchas
- • Always call Super::ClientCheatGhost_Implementation() first to properly configure movement mode before applying additional logic.
- • Ghost mode in the cheat system sets movement mode to Flying and disables collision responses — any custom collision channels you have added will also be bypassed.
Signature
ENGINE_API virtual void ClientCheatGhost_Implementation(); Return Type
void Example
Override to log ghost mode activation C++
void AMyCharacter::ClientCheatGhost_Implementation()
{
Super::ClientCheatGhost_Implementation();
UE_LOG(LogTemp, Warning, TEXT("Ghost mode activated for %s"), *GetName());
} See Also
Tags
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?