RealDocs

ACharacter::ServerMovePacked_Implementation

function Engine Since 4.20
#include "GameFramework/Character.h"
Access: public

Description

Server-side implementation body for the ServerMovePacked RPC. Deserializes the packed bits and forwards the move data to UCharacterMovementComponent for processing and validation.

Caveats & Gotchas

  • The actual move processing happens inside UCharacterMovementComponent::ServerMovePacked_Implementation — ACharacter just passes the bits through. Override in UCharacterMovementComponent, not here, for custom move processing.
  • Overriding this on ACharacter without calling Super will silently drop all client moves and produce a completely stationary character from the server's perspective.

Signature

void ServerMovePacked_Implementation(const FCharacterServerMovePackedBits& PackedBits)

Parameters

Name Type Description Default
PackedBits const FCharacterServerMovePackedBits& The packed move bitstream received from the client.

Return Type

void

Example

Pass-through pattern C++
// ACharacter::ServerMovePacked_Implementation just delegates:
void ACharacter::ServerMovePacked_Implementation(const FCharacterServerMovePackedBits& PackedBits)
{
    // Calls CharacterMovement->ServerMovePacked_Implementation internally
}

Version History

Introduced in: 4.20

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.