ACharacter::ClientCheatWalk_Implementation
#include "GameFramework/Character.h"
Access: public
Specifiers: virtualENGINE_API
Description
Implementation body for the ClientCheatWalk RPC. Sets the character's movement mode back to walking on the client. Override this to customize how walk cheat mode is applied.
Caveats & Gotchas
- • Always call Super::ClientCheatWalk_Implementation() in your override to ensure movement mode is properly restored via the CharacterMovementComponent.
- • This runs on the client only — any server-side movement state changes must be handled separately through the normal server-authoritative movement flow.
Signature
ENGINE_API virtual void ClientCheatWalk_Implementation(); Return Type
void Example
Override to reset additional client state when walk is restored C++
void AMyCharacter::ClientCheatWalk_Implementation()
{
Super::ClientCheatWalk_Implementation();
// Reset custom flight HUD state
HUDComponent->SetFlightModeVisible(false);
} See Also
Tags
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?