Navigation
API > API/Plugins > API/Plugins/NetworkPredictionExtras
Sample pawn that uses UCharacterMotionComponent. The main thing this provides is actually producing user input for the component/simulation to consume.
| Name | ANetworkPredictionExtrasCharacter |
| Type | class |
| Header File | /Engine/Plugins/Runtime/NetworkPredictionExtras/Source/NetworkPredictionExtras/Public/NetworkPredictionExtrasCharacter.h |
| Include Path | #include "NetworkPredictionExtrasCharacter.h" |
Syntax
UCLASS ()
class ANetworkPredictionExtrasCharacter : public APawn
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → AActor → APawn → ANetworkPredictionExtrasCharacter
Implements Interfaces
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
ANetworkPredictionExtrasCharacter
(
const FObjectInitializer& ObjectInitializer |
NetworkPredictionExtrasCharacter.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bFakeAutonomousProxy | bool | Actor will behave like autonomous proxy even though not posessed by an APlayercontroller. | NetworkPredictionExtrasCharacter.h |
|
| InputPreset | ENetworkPredictionExtrasCharacterInputPreset | NetworkPredictionExtrasCharacter.h |
|
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| CachedLookInput | FVector2D | NetworkPredictionExtrasCharacter.h | ||
| CachedMoveInput | FVector | NetworkPredictionExtrasCharacter.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AddMaxMoveSpeed
(
float AdditiveMaxMoveSpeed |
NetworkPredictionExtrasCharacter.h |
|
|
float GetMaxMoveSpeed() |
NetworkPredictionExtrasCharacter.h |
|
|
void PrintDebug() |
NetworkPredictionExtrasCharacter.h |
|
|
void SetMaxMoveSpeed
(
float NewMaxMoveSpeed |
NetworkPredictionExtrasCharacter.h |
|
Overridden from APawn
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void SetupPlayerInputComponent
(
UInputComponent* PlayerInputComponent |
NetworkPredictionExtrasCharacter.h |
Overridden from AActor
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void BeginPlay() |
NetworkPredictionExtrasCharacter.h | ||
virtual UNetConnection * GetNetConnection() |
NetworkPredictionExtrasCharacter.h | ||
virtual void Tick
(
float DeltaSeconds |
NetworkPredictionExtrasCharacter.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void ProduceInput
(
const int32 DeltaMS, |
NetworkPredictionExtrasCharacter.h |