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"

Best workaround for "replicating" skeletal mesh changes for weapons?

So I've been to trying get an event that swaps the skeletal mesh of a player's gun to properly replicate, and was going crazy thinking I had severely misunderstood how replication in UE4 works, only to find some threads mentioning how "Set Skeletal Mesh" is broken and doesn't actually replicate no matter how your set up your RPC's.

My question now is: what's the best way to work around this? My first thought is that I need to have skeletal mesh components on the player for each and every weapon in the game and just toggle their visibility. However, this would be a huge pain as my weapon system is already set up to be as easy and efficient as possible by storing a reference of each weapon's skeletal mesh in a structure, and using that to set the single skeletal mesh component on the player. The solution I've proposed would require a big messy Switch node that would check the name of the weapon and enable visibility of a specific skeletal mesh component, and another to disable the previous skeletal mesh component.

Another possible solution I thought of was to create new skeletal mesh components every time when equipping a weapon. This seems a bit simpler, but I'm not sure if it's viable.

If I absolutely need to take a messy approach to get this working properly, I will, but I'm hoping to find a more elegant solution.

Product Version: UE 4.22
Tags:
more ▼

asked Jul 12 '19 at 07:54 PM in Blueprint Scripting

avatar image

brenanwayland
1

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

0 answers: sort voted first
Be the first one to answer this question
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