Type / to search schemas

Client

Source
Inherits
Component
Used by fields
BasePawnOwner
Also in
Chaos Theorydiffers

Properties (10)

NameType
Viewer
The player we're currently in the view of (clientside). Usually the local player, apart from when spectating etc.
Local
Our local player on this client.
SteamId
ulong
Who owns this player state?
Sync
SteamName
string
The player's name, which might have to persist if they leave
Sync
Connection
The connection of this player
IsConnected
bool
Is this player connected? Clients can linger around in competitive matches to keep a player's slot in a team if they disconnect.
IsViewer
bool
Are we in the view of this player (clientside)
ReadOnly
IsLocalPlayer
bool
Is this the local player for this client
ReadOnly
MainPawn
The main Pawn of this player if one exists, will not change when the player possesses other pawns
Sync
Pawn
The pawn this player is currently in possession of (synced - unless the pawn is not networked)
Sync

Methods (5)

NameType
OnUpdate()
void
protected · override
HostInit()
void
Initialize the client for the host only
ClientInit()
void
Initialize the client locally for that client only
Owner
OnPossess(BasePawn pawn)
void
This client possessed some pawn, consider this an "event" of sorts
GetFromConnection(Connection connection)