Module |
|
Header |
/Engine/Source/Runtime/Engine/Classes/GameFramework/PlayerState.h |
Include |
#include "GameFramework/PlayerState.h" |
Source |
/Engine/Source/Runtime/Engine/Private/PlayerState.cpp |
float GetPingInMilliseconds() const
Returns the ping (in milliseconds)
Returns ExactPing if available (local players or when running on the server), and the replicated CompressedPing (converted back to milliseconds) otherwise.
Note that replication of CompressedPing is controlled by bShouldUpdateReplicatedPing, and if disabled then this will return 0 or a stale value on clients for player states that aren't related to local players