In my project, I have a vehicle that 3 different player can interact with vehicle various meshes.
I need those interactions replicated, so when any player click any meshes, I’m setting owner of vehicle to that player on server. Therefore; for interaction, player has to click same mesh twice at first time for RPC to work. And question is:
If any actor can have multiple owners at same time, there is no need to click twice to mesh.
Can actor have multiple owners for RPC? if yes, how can set multiple owners for same actor?
An actor can only have one owner, though he can own multiple other actors.
1 Like
Yes the Owner is not an array and is set by the Server so max one.
You should instead add a component to the PlayerController (perhaps call it VehicleControllerComponent) that handles sending Server RPC’s to the Vehicle parts. The Vehicle should not be owned by anyone but it can still replicate the state of the vehicle to everyone while receiving “commands” from each of the players VehicleControllerComponent.
1 Like