ACharacter::ClientCheatFly
#include "GameFramework/Character.h"
Access: public
Specifiers: ENGINE_APIReliableClient
Description
Reliable Client RPC sent from the server to switch the character into fly movement mode as part of the cheat system.
Caveats & Gotchas
- • Like all cheat RPCs, this is a reliable Client RPC whose body is in ClientCheatFly_Implementation(). Override the _Implementation variant, not this stub.
- • Calling this directly on a non-authoritative client will not replicate to the server — the cheat system is designed to be server-initiated only.
Signature
ENGINE_API void ClientCheatFly(); Return Type
void Example
Enable fly cheat from a custom cheat manager C++
void UMyCheatManager::Fly()
{
if (ACharacter* MyChar = Cast<ACharacter>(GetOuterAPlayerController()->GetPawn()))
{
MyChar->ClientCheatFly();
}
} See Also
Tags
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?