ACharacter::ClientCheatFly_Implementation
#include "GameFramework/Character.h"
Access: public
Specifiers: virtualENGINE_API
Description
Implementation body for the ClientCheatFly RPC. Sets the character's movement mode to flying on the client. Override to customize fly cheat behavior.
Caveats & Gotchas
- • Call Super::ClientCheatFly_Implementation() to ensure the movement component's fly mode is engaged before adding custom logic.
- • Fly mode set here applies only on the local client. The server still runs its own movement simulation, so visual discrepancies can occur if the server does not mirror the state.
Signature
ENGINE_API virtual void ClientCheatFly_Implementation(); Return Type
void Example
Override to show a flight indicator C++
void AMyCharacter::ClientCheatFly_Implementation()
{
Super::ClientCheatFly_Implementation();
HUDComponent->SetFlightModeVisible(true);
} See Also
Tags
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?