UCharacterMovementComponent::ServerMoveOld
Deprecated: ServerMoveOld() is deprecated, use ServerMovePacked_ClientSend() instead, or define SUPPORT_DEPRECATED_CHARACTER_MOVEMENT_RPCS=1 in the project and set CVar p.NetUsePackedMovementRPCs=0 to use the old code path.
#include "GameFramework/CharacterMovementComponent.h"
Access: public
Specifiers: virtualENGINE_API
Description
Legacy replicated function for resending an important old move so the server can process it if it hasn't already been received.
Caveats & Gotchas
- • Deprecated since UE 4.26 in favor of the packed movement RPC path (ServerMovePacked_ClientSend); only compiled in when SUPPORT_DEPRECATED_CHARACTER_MOVEMENT_RPCS=1 and p.NetUsePackedMovementRPCs is 0.
- • Part of the legacy fixed-parameter RPC family alongside ServerMove and ServerMoveDual — all three were replaced by the single variable-length packed RPC.
- • New projects should not implement against this; it exists purely for backward compatibility with older network protocols.
Signature
virtual void ServerMoveOld(float OldTimeStamp, FVector_NetQuantize10 OldAccel, uint8 OldMoveFlags) Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| OldTimeStamp | float | Timestamp of the older move being resent. | — |
| OldAccel | FVector_NetQuantize10 | Quantized acceleration for the old move. | — |
| OldMoveFlags | uint8 | Compressed input flags for the old move (e.g. jump). | — |
Return Type
void Example
Legacy RPC declaration (engine-internal, deprecated path) C++
// Only relevant with SUPPORT_DEPRECATED_CHARACTER_MOVEMENT_RPCS=1 and p.NetUsePackedMovementRPCs=0:
CharacterOwner->ServerMoveOld(OldTimeStamp, OldAccel, OldMoveFlags); See Also
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | deprecated | Deprecated since 4.26 in favor of packed movement RPCs. |
Feedback
Was this helpful?