How to change actor's Net Role?

Turns out you can’t change this for Actors that are not player controllers, and I think also pawns.

Thankfully, it turned out “is locally controlled” was actually what I wanted here, even though I didn’t think it would work previously.

The goal I was trying to achieve was client authoritative physics replication when an object is thrown by the player.

I set the equippable actor’s owner in the player’s equip manager component locally, then afterwards I do so through the server.

Then I trigger the event on the equippable actor, which sets a timer. This timer in turn gets the actors position, rotation, linear and angular velocity, then sends it to the server, which multicasts it.

Then on the multicast I check if the owner of the actor (being a player controller) is a local controller through an interface. If it isn’t a local controller, I update the meshes location, rotation, linear and angular velocity. If it is a local controller, I check the velocity, and if it’s low enough, clear the timer.