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"

Socket Location Incorrect When Server Isn't Looking

Hello! I am using two socket locations on the tip of a sword and at the base, and then using some simple math to find three more positions in between them. When you are attacking, every .05 seconds the vectors update to new positions along the sword, and a trace is drawn from the old position to the new one.

Everything works great except for when the server is not looking at the client. For some reason the socket position does not follow the animation in this case, but rather just stays in the default idle position. I think this is due to optimizations from the culling system, causing the game to not play animations for the server when it's not looking at the mesh of the client attempting to play it, so for it the location is whatever it would be in the idle position.

I'm not sure what to do at this point, any ideas?

Here are two pictures to illustrate what I mean:

Server is looking: http://i.imgur.com/M0MBDfy.png

Server is not looking: http://i.imgur.com/hUZ5cTt.png

Product Version: Not Selected
more ▼

asked Jul 24 '14 at 10:51 PM in Blueprint Scripting

avatar image

237 25 15 26

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

2 answers: sort voted first

Set "Mesh Component Update Flag" to "Always Tick Pose and Refresh Bones"

 GetMesh()->MeshComponentUpdateFlag = EMeshComponentUpdateFlag::AlwaysTickPoseAndRefreshBones;

more ▼

answered Feb 17 '16 at 07:48 PM

avatar image

16 4

avatar image mhnoni Jun 24 '16 at 01:58 PM

oh man if you where near me i will kiss your cheek . thanks a lot .

avatar image Azrael87 Jan 03 '18 at 06:03 AM

You saved my night. I had sockets not updating when my server was looking away. I set my attached weapon mesh and character mesh to this and it works flawlessly now. Thanks again.

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

I think I was right with the animation culling system. Now that I am more familiar with networking replication I tried using "Run on Client" to get the socket location and pass that to the server, which seemed to work

more ▼

answered Aug 25 '14 at 01:36 AM

avatar image

237 25 15 26

avatar image MadDok Mar 17 '15 at 04:49 AM

I know this is old, but I am having the same issue. Any chance we could get a picture of the blueprint of how you set up the "Run on Client" it would be greatly appreciated.

(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