Can't destroy actor after i've destroyed it before

Hi. I was creating an harvesting system and I ran into a problem where I can’t destroy an actor after i’ve destroyed it before. It’s replicated and the server can destroy the actor every time even after being destroyed before, but client can only destroy it once and after that the actor will stay. Under destroy I mean (life span).

First, it seems like you spawn the actor (master ore) on all clients separately. Is this intended? If master ore actor is replicated, then all clients spawn their own (in Client_Spawn_Ore), and once the server spawns it (also in Client_Spawn_Ore), it too gets replicated to all clients, so all clients have two times a master ore actor (once by manual spawning, another one via replication).

Replicated actors should only be spawned on the server, the server will automatically contact clients to create a replicated version that gets synchronized with the one on the server.

Also, the client should never manually destroy a replicated actor.
Replicated actors should only get manually destroyed on the server. Once destroyed on the server, clients will automatically be notified to remove their replicated version of it.

1 Like

Okay thanks for the info I will try it!