UCharacterMovementComponent::CallServerMovePacked

On the client, calls the [ServerMovePacked_ClientSend()](API\Runtime\Engine\GameFramework\UCharacterMovementComponent\ServerMovePacked-) function with packed movement data.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/GameFramework/CharacterMovementComponent.h

Include

#include "GameFramework/CharacterMovementComponent.h"

Source

/Engine/Source/Runtime/Engine/Private/Components/CharacterMovementComponent.cpp

Syntax

virtual void CallServerMovePacked
(
    const FSavedMove_Character * NewMove,
    const FSavedMove_Character * PendingMove,
    const FSavedMove_Character * OldMove
)

Remarks

On the client, calls the ServerMovePacked_ClientSend() function with packed movement data. First the FCharacterNetworkMoveDataContainer from GetNetworkMoveDataContainer() is updated with ClientFillNetworkMoveData(), then serialized into a data stream to send client player moves to the server.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss