RealDocs

ACharacter::ServerMoveOld_Validate

function Engine Deprecated Since 4.0
Deprecated: Use ServerMovePacked validation instead.
#include "GameFramework/Character.h"
Access: public

Description

Validation function for the ServerMoveOld RPC. Returns false to kick the client. Default implementation always returns true.

Caveats & Gotchas

  • Deprecated alongside its RPC.
  • Returning false disconnects the client for all future connections in the session — this cannot be undone short of a reconnect. Only return false for clearly malicious data.

Signature

ENGINE_API bool ServerMoveOld_Validate(float OldTimeStamp, FVector_NetQuantize10 OldAccel, uint8 OldMoveFlags)

Parameters

Name Type Description Default
OldTimeStamp float Timestamp to validate.
OldAccel FVector_NetQuantize10 Acceleration to validate.
OldMoveFlags uint8 Move flags to validate.

Return Type

bool

Example

Simple passthrough validation C++
bool AMyCharacter::ServerMoveOld_Validate(
    float OldTimeStamp, FVector_NetQuantize10 OldAccel, uint8 OldMoveFlags)
{
    return Super::ServerMoveOld_Validate(OldTimeStamp, OldAccel, OldMoveFlags);
}

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.