ANetworkPredictionExtrasFlyingPawn

Sample pawn that uses [UFlyingMovementComponent](API\Plugins\NetworkPrediction\Movement\UFlyingMovementComponent).

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

NetworkPredictionExtras

Header

/Engine/Plugins/Runtime/NetworkPredictionExtras/Source/NetworkPredictionExtras/Public/NetworkPredictionExtrasFlyingPawn.h

Include

#include "NetworkPredictionExtrasFlyingPawn.h"

Syntax

[UCLASS](Programming/UnrealArchitecture/Reference/Classes#classdeclaration)()
class ANetworkPredictionExtrasFlyingPawn : public APawn

Remarks

Sample pawn that uses UFlyingMovementComponent. The main thing this provides is actually producing user input for the component/simulation to consume.

Variables

Name Description

Public variable UProperty Category, EditAnywhere BlueprintReadOnly

bool

 

bFakeAutonomousProxy

Actor will behave like autonomous proxy even though not posessed by an APlayercontroller.

Protected variable UProperty Category visibleanywhere

UFlyingMovement...

 

FlyingMovementComponent

Public variable UProperty Category, EditAnywhere BlueprintReadWrite

ENetworkPredict...

 

InputPreset

Constructors

Name Description

Public function

ANetworkPredictionExtrasFlyingPawn

(
    const FObjectInitializer& ObjectIn...
)

Functions

Name Description

Public function UFunction BlueprintCallable, Category

void

 

AddMaxMoveSpeed

(
    float AdditiveMaxMoveSpeed
)

Protected function Const

const FFlyin...

 

GetAuxStateRead()

Protected function

FFlyingMovem...

 

GetAuxStateWrite()

Public function Const UFunction BlueprintCallable, Category

float

 

GetMaxMoveSpeed()

Public function Const UFunction BlueprintCallable, Category

int32

 

GetPendingFrame()

Only intended for debugging in test map examples. Not really intended to be useful for general game code use.

Public function UFunction BlueprintCallable, Category

void

 

PrintDebug()

Protected function

void

 

ProduceInput

(
    const FNetworkSimTime SimTime,
    FFlyingMovementInputCmd& Cmd
)

Public function UFunction BlueprintCallable, Category

void

 

SetMaxMoveSpeed

(
    float NewMaxMoveSpeed
)

Overridden from APawn

Name Description

Public function Virtual

void

 

SetupPlayerInputComponent

(
    UInputComponent* PlayerInputCo...
)

Allows a Pawn to set up custom input bindings.

Overridden from AActor

Name Description

Public function Virtual

void

 

BeginPlay()

Overridable native event for when play begins for this actor.

Public function Virtual Const

UNetConnecti...

 

GetNetConnection()

Get the owning connection used for communicating between client/server

Public function Virtual

void

 

Tick

(
    float DeltaSeconds
)

Function called every frame on this Actor.

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