class
FNetPlayerState
- Module
- Networking
- Header
#include "Networking/Session/NetSessionTypes.h"- Namespace
Mowo
Properties
| Type | Name | Description |
|---|---|---|
static constexpr uint8_t | kFlagCrouched | Default 1 << 0. |
static constexpr uint8_t | kFlagSprinting | Default 1 << 1. |
static constexpr uint8_t | kFlagAirborne | Default 1 << 2. |
static constexpr uint8_t | kFlagScanning | Default 1 << 3. |
static constexpr uint8_t | kFlagDowned | Default 1 << 4. |
static constexpr uint8_t | kFlagDead | Default 1 << 5. |
uint8_t | animState | Default 0. |
uint8_t | speedNormalized | Default 0. |
uint8_t | health | Default 255. |
uint8_t | flags | Default 0. |
Public functions
| Returns | Name | Description |
|---|---|---|
uint32_t | Pack | |
FNetPlayerState | Unpack | |
void | SetSpeed | |
float | GetSpeed | |
void | SetHealthFraction | |
float | GetHealthFraction | |
bool | HasFlag | |
void | SetFlag | |
bool | operator== | |
bool | operator!= |
Function details
Pack
C++
uint32_t Pack() constUnpack
C++
static FNetPlayerState Unpack(uint32_t packed)SetSpeed
C++
void SetSpeed(float metersPerSecond, float maxSpeed)GetSpeed
C++
float GetSpeed(float maxSpeed) constSetHealthFraction
C++
void SetHealthFraction(float fraction)GetHealthFraction
C++
float GetHealthFraction() constHasFlag
C++
bool HasFlag(uint8_t flag) constSetFlag
C++
void SetFlag(uint8_t flag, bool on)operator==
C++
bool operator==(const FNetPlayerState& other) constoperator!=
C++
bool operator!=(const FNetPlayerState& other) constGenerated from Networking/Session/NetSessionTypes.h via networking.json · Nov 4, 2026Version 1.0.0