FCharacterNetworkMoveData

Client to Server movement data.

Windows
MacOS
Linux

References

Module

Engine

Header

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

Include

#include "GameFramework/CharacterMovementReplication.h"

Syntax

struct FCharacterNetworkMoveData

Remarks

FCharacterNetworkMoveData encapsulates a client move that is sent to the server for UCharacterMovementComponent networking.

Adding custom data to the network move is accomplished by deriving from this struct, adding new data members, implementing ClientFillNetworkMoveData() , implementing Serialize() , and setting up the UCharacterMovementComponent to use an instance of a custom FCharacterNetworkMoveDataContainer (see that struct for more details).

Variables

Name Description

Public variable

FVector_NetQuan ...

 

Acceleration

Public variable

uint8

 

CompressedMoveFlags

Public variable

FRotator

 

ControlRotation

Public variable

FVector_NetQuan ...

 

Location

Public variable

UPrimitiveCompo ...

 

MovementBase

Public variable

FName

 

MovementBaseBoneName

Public variable

uint8

 

MovementMode

Public variable

ENetworkMoveTyp ...

 

NetworkMoveType

Indicates whether this was the latest new move, a pending/dual move, or old important move.

Public variable

float

 

TimeStamp

Constructors

Name Description

Public function

FCharacterNetworkMoveData()

Destructors

Name Description

Public function Virtual

~FCharacterNetworkMoveData()

Functions

Name Description

Public function Virtual

void

 

ClientFillNetworkMoveData

(
    const FSavedMove_Character & Client...,
    ENetworkMoveType MoveType
)

Given a FSavedMove_Character from UCharacterMovementComponent , fill in data in this struct with relevant movement data.

Public function Virtual

bool

 

Serialize

(
    UCharacterMovementComponent & Chara...,
    FArchive & Ar,
    UPackageMap * PackageMap,
    ENetworkMoveType MoveType
)

Serialize the data in this struct to or from the given FArchive .

Enums

Name

Description

Public enum

ENetworkMoveType

See Also

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback