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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Blueprint Static Mesh Component replication problem [Multiplayer]

Hello,

I'm trying to make an weapon switching system for Multiplayer but I have a huge problem...

Player has an array which includes all possible weapons can be equipped and an integer depends on equipped weapon IDs and these variables are replicated

When player equipped a weapon from inventory list, WeaponInHand integer changes as equipped weapon's ID. [0 means no weapon in hand]

It works perfectly without Multiplayer but at Multiplayer it only works for Server. Client can see Server's equipped weapon but Server can't see Client's equipped weapon.

alt text alt text

CLIENT: alt text

SERVER: alt text

I realised there is no replication settings in static mesh component

alt text

Then, after some searchings , I found Set Is Replicated node for components which hasn't any replication setting in details panel and tried but didn't work.. alt text

By the way, I equipped a weapon and checked the WeaponInHand integer of Player [Client] while playing and it was 2. I think it proves it's a static mesh component replication problem alt text

I'm looking forward to see your answers...

Product Version: UE 4.12
Tags:
more ▼

asked Jun 09 '16 at 03:40 PM in Blueprint Scripting

avatar image

Miyajima
1 1 1 3

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

1 answer: sort voted first

I have had the same issue as this. I have found that if you change from equipping a static mesh component in the character mesh to a child actor. Instead load a blueprint actor into this and replicate onto the server, this has worked for me. alt text Create a custom event in your character blueprint. Make it execute on the server. alt text This has replicated on both client and server side.

equip.png (279.3 kB)
equipevent.png (294.4 kB)
more ▼

answered Dec 18 '16 at 04:07 PM

avatar image

Logadog
1 1

(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