FNetworkPredictionData_Server_Character

Windows
MacOS
Linux

Inheritance Hierarchy

FNetworkPredictionData_Server

FNoncopyable

FNetworkPredictionData_Server_Character

References

Module

Engine

Header

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

Include

#include "GameFramework/CharacterMovementComponent.h"

Syntax

class FNetworkPredictionData_Server_Character :
    public FNetworkPredictionData_Server ,
    protected FNoncopyable

Variables

Name Description

Public variable

uint32 : 1

 

bForceClientUpdate

Force client update on the next ServerMoveHandleClientError() call.

Public variable

bool

 

bResolvingTimeDiscrepancy

True if currently in the process of resolving time discrepancy

Public variable

float

 

CurrentClientTimeStamp

Timestamp from the client of most recent ServerMove() processed for this player.

Public variable

float

 

LastUpdateTime

Last time server updated client with a move correction

Public variable

float

 

LifetimeRawTimeDiscrepancy

Accumulated timestamp difference between autonomous client and server for tracking long-term trends

Public variable

float

 

MaxMoveDeltaTime

Max delta time for a given move, in real seconds Based off of AGameNetworkManager::MaxMoveDeltaTime config setting, but can be modified per actor if needed.

Public variable

FClientAdjustme ...

 

PendingAdjustment

Public variable

double

 

ServerAccumulatedClientTimeStamp

Timestamp of total elapsed client time.

Public variable

float

 

ServerTimeStampLastServerMove

Server clock time when last server move was received from client (does NOT include forced moves on server)

Public variable

float

 

TimeDiscrepancy

Current time discrepancy between client-reported moves and time passed on the server.

Public variable

float

 

TimeDiscrepancyAccumulatedClientDeltasSinceLastServerTick

When bResolvingTimeDiscrepancy is true, we are in time discrepancy resolution mode where we bound move deltas by Server Deltas.

Public variable

float

 

TimeDiscrepancyResolutionMoveDeltaOverride

When bResolvingTimeDiscrepancy is true, we are in time discrepancy resolution mode whose output is this value (to be used as the DeltaTime for current ServerMove)

Public variable

float

 

WorldCreationTime

Creation time of this prediction data, used to contextualize LifetimeRawTimeDiscrepancy

Constructors

Destructors

Functions

Name Description

Public function Const

float

 

GetBaseServerMoveDeltaTime

(
    float ClientTimeStamp,
    float ActorTimeDilation
)

Returns base time delta to use for a ServerMove, default calculation (no time discrepancy resolution)

Public function Const

float

 

GetServerMoveDeltaTime

(
    float ClientTimeStamp,
    float ActorTimeDilation
)

Returns time delta to use for the current ServerMove().

Deprecated Variables

Name Description

Public variable

float

 

MaxResponseTime

MaxResponseTime has been renamed to MaxMoveDeltaTime for clarity in what it does and will be removed, use MaxMoveDeltaTime instead.

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