Navigation
API > API/Plugins > API/Plugins/NetworkPredictionExtras
Inheritance Hierarchy
- FFlyingMovementInputCmd
- FMockAbilityInputCmd
References
Module | NetworkPredictionExtras |
Header | /Engine/Plugins/Runtime/NetworkPredictionExtras/Source/NetworkPredictionExtras/Public/MockAbilitySimulation.h |
Include | #include "MockAbilitySimulation.h" |
Syntax
struct FMockAbilityInputCmd : public FFlyingMovementInputCmd
Remarks
Mock Ability Simulation This is meant to illustrate how a higher level simulation can build off an existing one. While something like GameplayAbilities is more generic and data driven, this illustrates how it will need to solve core issues.
This implements:
Stamina "attribute": basic attribute with max + regen value that is consumed by abilities.
Sprint: Increased max speed while sprint button is held. Drains stamina each frame.
Dash: Immediate acceleration to a high speed for X seconds.
Blink: Teleport to location X units ahead
MockAbility Data structures
Variables
Type | Name | Description | |
---|---|---|---|
![]() |
bool | bBlinkPressed | |
![]() |
bool | bDashPressed | |
![]() |
bool | bPrimaryPressed | |
![]() |
bool | bSecondaryPressed | |
![]() |
bool | bSprintPressed |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
void | NetSerialize
(
const FNetSerializeParams& P |
|
![]() ![]() |
void | ToString
(
FAnsiStringBuilderBase& Out |