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"

Dedicated server tick mesh pose for a single frame

I am purposely not ticking my character's mesh pose on dedicated servers (for optimization).

 if (GetNetMode() == NM_DedicatedServer && GetMesh())
     GetMesh()->VisibilityBasedAnimTickOption = EVisibilityBasedAnimTickOption::OnlyTickPoseWhenRendered;

However, I need the animated location of my character's hand on the dedicated server in order to drop weapon pickups from that location.

Is there someway to force an update the mesh's pose on the dedicated server before dropping a weapon so I have the correct bone location?

I have tried doing the following, but it didn't work.

 if (GetMesh)

Edit: So the following is partially working.

I'm doing the following from character right before dropping the weapon

 GetMesh()->TickPose(GetWorld()->GetDeltaSeconds(), false);

This seems to start off in the wrong location (tpose location) and gradually get closer and closer to the correct animated location the more I drop the weapons.

The location I am spawning the weapon pickup at is


Thank you!

Product Version: UE 4.21
more ▼

asked Dec 21 '18 at 05:25 AM in C++ Programming

avatar image

400 44 46 68

(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