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"

Actor not attaching to client component on server

I have this item that can be picked up by a player whenever he presses E on the object but whenever the clients picks it up it attaches but it is not seen by the server the item is still there but whenever the server picks it up it is seen by both client and server. Here are my blueprints:

alt text

alt text

alt text

Product Version: UE 4.8
Tags:
more ▼

asked Aug 15 '15 at 06:46 PM in Blueprint Scripting

avatar image

MrIntel
9 3 4 6

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

1 answer: sort voted first

You have "Left Mouse Button" which is coming from the client calling a Multicast function, you should first have it call ServerFire (Run on server) then have the server call MulticastFire to call everywhere.

The client can not directly tell other clients what to do, only the server can.

I don't see all the relevant code so I can't be sure there's not another issue, but if that doesn't work I'd also make sure you're only dealing with replicated functions with Net Owners (or things owned by them).

more ▼

answered Aug 16 '15 at 01:23 AM

avatar image

IanLaBrie
611 21 8 35

avatar image MrIntel Aug 16 '15 at 03:12 AM

Same thing is happening see below: alt text

This my new weapon blueprint:

alt text

Here is my character blueprint: alt text

I also have the weapon BP set to replicates and replicate movement.

Edit: Got it working now forgot to replicate the pickup event.

(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