- Chaos Core
- Core
- Component
- Client
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.
SteamId
ulong
Who owns this player state?
Sync
SteamName
string
The player's name, which might have to persist if they leave
Sync
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
GetFromConnection(Connection connection)