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

main
Gene Walters 5 years ago
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

Loading…
Cancel
Save