class

INetPawnHost

Module
Networking
Header
#include "Networking/Session/NetPawnHost.h"
Namespace
Mowo

Constructors

SignatureNameDescription
virtual ~INetPawnHost() = default~INetPawnHost

Public functions

ReturnsNameDescription
EntityIDSpawnPawnForSpawn (or, for the local host player, adopt) the pawn for a player and return its backing entity — INVALID_ENTITY makes the session fall back to a bare entity.
boolDestroyPawnForTear down the player's pawn.

Function details

~INetPawnHost

C++
virtual ~INetPawnHost() = default

SpawnPawnFor

C++
virtual EntityID SpawnPawnFor(uint32_t playerId, uint32_t peerId, bool isLocal, const char* displayName) = 0

Spawn (or, for the local host player, adopt) the pawn for a player and return its backing entity — INVALID_ENTITY makes the session fall back to a bare entity. The host also registers the actor with the replication manager's address book; the session only sees the entity.

DestroyPawnFor

C++
virtual bool DestroyPawnFor(uint32_t playerId, EntityID pawnEntity) = 0

Tear down the player's pawn. Return true when the host handled the entity (actor path); false makes the session destroy the raw entity. Controller release (UnPossess) belongs here either way.

Generated from Networking/Session/NetPawnHost.h via networking.json · Nov 4, 2026Version 1.0.0