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"

AnswerHub Maintenance

Background maintenance is scheduled to occur between 9 - 11am EDT on Tuesday, May 21. Site operation may be slower than normal during this time and a brief interruption in operation may be observed

Problem destroying actor in multiplayer on drop

I have it so that when I drop onto a slot, it should destroy the actor in the world and spawn a new actor in on the characters body, but calling destroy item (which is in the items blueprint) as a replicated event does not destroy the actor for any of the clients on a dedicated server.alt text

Product Version: UE 4.16
more ▼

asked Jun 19 '17 at 10:01 PM in Blueprint Scripting

avatar image

hustle21 -Twitch
13 3 3 7

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

Ok so I figured out at least one way to remedy this problem, if anyone was curious. I read that the playercontroller has to do the talking to the server so I did a 'run on server' event in my custom created player controller. The event in the player controller called the function in the BaseItem class to destroy the item. In the OnDrop section of my widget I called the event in PlayerControlelr by casting to it with getplayercontroller.

This method seems to work quite well with other things I needed to have replicated as well so it seems like a robust solution.

If anyone needs more info let me know.

more ▼

answered Jun 21 '17 at 08:56 PM

avatar image

hustle21 -Twitch
13 3 3 7

(comments are locked)
10|2000 characters needed characters left
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