x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Destroy an actor per client ?

Hello all and have a good year ! :)

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 !

Product Version: UE 4.21
Tags:
more ▼

asked Jan 12 '19 at 11:00 PM in Blueprint Scripting

avatar image

Galaaas_
10 1 1 2

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

3 answers: sort voted first

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. alt text

more ▼

answered Jan 13 '19 at 08:18 AM

avatar image

IEI Game Studios
241 2 5 5

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

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 ...

more ▼

answered Jan 13 '19 at 11:19 AM

avatar image

Galaaas_
10 1 1 2

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

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.

more ▼

answered Jan 14 '19 at 02:26 AM

avatar image

IEI Game Studios
241 2 5 5

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question