ACharacter::ClientMoveResponsePacked
#include "GameFramework/Character.h"
Access: public
Specifiers: UFUNCTIONunreliableclientWithValidation
Description
Client RPC that delivers the server's response to a client move — either an acknowledgement or a position correction. This is the current generation response RPC replacing the older ClientAdjustPosition family.
Caveats & Gotchas
- • Sent unreliably — if a correction packet is dropped, the client will continue with its local prediction until the next correction arrives. Avoid designs that depend on every correction being received.
- • Do not call this directly. It is sent by UCharacterMovementComponent on the server when it needs to ack or correct the client.
Signature
void ClientMoveResponsePacked(const FCharacterMoveResponsePackedBits& PackedBits) Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| PackedBits | const FCharacterMoveResponsePackedBits& | Variable-length bitstream containing the server's move response (ack or correction). | — |
Return Type
void Example
Custom response data in packed bits C++
// Extend response data by subclassing FCharacterMoveResponseDataContainer
// in UCharacterMovementComponent. You do NOT call ClientMoveResponsePacked directly.
// The base class serializes your custom response data into PackedBits automatically. Version History
Introduced in: 4.20
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?