Destroy actors in multiplayer

as I give permission for the client character to destroy actors in multiplayer.

when my server character picks up an item, the item is destroyed, but that does not work with the client character, has already replicated is not working, is not destroyed by the client.

???
I have no idea what your problem or question is…

Actors set to replicate (by the server) that gets destroyed by the server are also destroyed on clients.

If you destroy an actor an the server and it does not get destroyed on clients, then the actor is not set to replicate, or not set up properly to replicate.
If an actor should get replicated, then you should declare that in the actor’s constrctor.
Also, only actors spawned by the server (and set to replicate) are replicated at all.
If a client spawn’s an actor, even if set to replicate, then the actor is NOT replicated, meaning it only exists on the client that spawned it.

Hello,

You’ll need to destroy object on server if you want to destroy it on all clients. If you just do destroy actor on client it will be destroyed only on client.

(I assume you are using blueprints)
If you want to destroy actor on all clients you will need to check autority
(has autority node) 1.2 - Detecting Network Authority and Remote Clients in Blueprints | Unreal Engine Documentation
then you will need to call RPC from client to server - RPC is Remote player call. (Mark to reliable if you want to be sure that it will be destroyed) Just right click on empty space in BP and type “custom event” then click it and chose run on server (this will create function only executed on server called by client) then just call it on client.

And there is what you should do with this

266260-yourdesiredbp.png

Networking in UE4 isn’t complicated.

Hope this helps.

I did it and it worked, thank you.