Destroy an actor per client?

Hello all and have a good year ! :slight_smile:

I have a question : How to destroy an actor per client on a dedicated server ? I mean when THIS player (thirdpersoncharacter) destroy a specified actor (With Overlap), it’s not destruct for others.

I’ve test a lot of solution with custom events but i definitely don’t find …

Thanks you very much !

Here is my Looting Event that gets called when the player presses the “E” key while looking at a lootable item. This setup workflow will work for any setup as long as you properly replicate your item (actor to destroy) as well as the events.

Hello, thanks for your answer !

Your code works great, but not has expected …

I want destroy actor only for the player (client) who pick up the actor, not for others clients. I think it be a copy for each client or detect which client do this action, or somehing like that …

So instead of calling “Destroy Looted Item” just call “Destroy Actor”.

As long as your Character is Replicated, you don’t need to call “Per Character” functions. You just simply need to set it up so that when a Player loots, it destroys the actor and then since your character is replicated and each player controller possesses a Character instance of that class, it’ll automatically replicate as it should.