Client is absorbing remote function because RemoteRole is ROLE_None

byalexeykh
Tue, 05 Jan 2021 15:22:32 +0000
Multiplayer & Networking

The client does not start the server function due to the error:

LogNet: Warning: Client is absorbing remote function ServerFire on actor M4_0 because RemoteRole is ROLE_None

As I understand it, i need to assign a role to the weapon, but doesn’t it inherit the role from the owner? When a weapon spawns, I give it an owner in this way: (spawn occurs in the player’s class in “SpawnActorDeffered method”)

PrimaryWeapon->SetOwner(GetController());

PrimaryWeapon->SetRole(GetLocalRole());

2 posts - 1 participant