Navigation
API > API/Plugins > API/Plugins/NetworkPredictionExtras
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- AActor
- APawn
- ANetworkPredictionExtrasCharacter
- ANetworkPredictionExtrasCharacter_MockAbility
References
| Module | NetworkPredictionExtras |
| Header | /Engine/Plugins/Runtime/NetworkPredictionExtras/Source/NetworkPredictionExtras/Public/NetworkPredictionExtrasCharacter.h |
| Include | #include "NetworkPredictionExtrasCharacter.h" |
Syntax
UCLASS&40;&41;
class ANetworkPredictionExtrasCharacter : public APawn
Remarks
Sample pawn that uses UCharacterMotionComponent. The main thing this provides is actually producing user input for the component/simulation to consume.
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bFakeAutonomousProxy | Actor will behave like autonomous proxy even though not posessed by an APlayercontroller. | |
| TObjectPtr< UCharacterMotionComponent > | CharacterMotionComponent | ||
| ENetworkPredictionExtrasCharacterInputPreset | InputPreset |
Constructors
| Type | Name | Description | |
|---|---|---|---|
ANetworkPredictionExtrasCharacter
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddMaxMoveSpeed
(
float AdditiveMaxMoveSpeed |
||
| float | |||
| void | PrintDebug () |
||
| void | ProduceInput
(
const int32 DeltaMS, |
||
| void | SetMaxMoveSpeed
(
float NewMaxMoveSpeed |
Overridden from APawn
| Type | Name | Description | |
|---|---|---|---|
| void | SetupPlayerInputComponent
(
UInputComponent* PlayerInputComponent |
Allows a Pawn to set up custom input bindings. |
Overridden from AActor
| Type | Name | Description | |
|---|---|---|---|
| void | BeginPlay () |
Overridable native event for when play begins for this actor. | |
| UNetConnection * | Get the owning connection used for communicating between client/server | ||
| void | Tick
(
float DeltaSeconds |
Function called every frame on this Actor. |