The host will now have autonomy over the default player is has spawned for itself using the sv_defaultPlayerSpawnAsset cvar

This commit is contained in:
Gene Walters
2021-05-24 12:49:38 -07:00
parent b37be6cdbf
commit 12d0d9e7b7
@@ -449,6 +449,7 @@ namespace Multiplayer
{
controlledEntity = entityList[0];
controlledEntity.GetNetBindComponent()->SetOwningConnectionId(connection->GetConnectionId());
controlledEntity.GetNetBindComponent()->SetAllowAutonomy(true);
}
if (connection->GetUserData() == nullptr) // Only add user data if the connect event handler has not already done so