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"

Animation only playing on 1 client

Hello all i am currently having an issue where my animation is only playing on 1 client and it always seem to be the host one How do i make it so my animation plays across all server and clients ? i have checked Always Tick Pose and Refresh Bones is set so now im lost a little help please . alt text

Product Version: UE 4.18
Tags:
help.png (99.8 kB)
more ▼

asked Mar 20 '19 at 11:27 AM in Using UE4

avatar image

Deftones4
6 1

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

4 answers: sort voted first

The server has to talk to the client too. So you need a second event and the server should talk to all the clients

more ▼

answered Mar 20 '19 at 11:35 AM

avatar image

Unreal Kort
17 3 1 5

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

I would be careful trying to replicate information from your animated blueprints (AnimInstance).

Instead, from your server event, create a multicast event and then get your anim instance class and set bSkill2 to apply the action on all clients.

Note: Ensure that you enable replicated from your class defaults. alt text

more ▼

answered Mar 20 '19 at 12:56 PM

avatar image

Alekann01
441 4 5 6

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

OK so i found a fix alt text

solved1.png (214.1 kB)
solved2.png (92.9 kB)
more ▼

answered Mar 21 '19 at 09:45 AM

avatar image

Deftones4
6 1

avatar image Alekann01 Mar 21 '19 at 10:37 AM

Casting and checking the validity of the pawn / player controller each animation update is an extremely expensive way to go, especially for a networked game.

Your event "TellClientsToStart" is ran on Server, so unless "IsShootingProjectile" a replicated variable with a RepNotify function which calls some logic, you are not actually telling in the client anything.

At the moment you animation blueprint is asking the pawn owner "CanIStartYet?", "CanIStartYet?", "CanIStartYet?", "CanIStartYet?", when really you want the pawn owner to receive an event from the server that goes "Right, now I will find my animations and I will tell them to start"

I am glad you found a solution to your problem, but I would recommend you revist this code.

Good luck!

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

Thanks for the feedback so now i removed the info from the AnimBp like you said i created a RepNotify Event Within that i get it to check if the bool is true if it is then execute a multicast event. Which i use in all my children BP's of the master character where i can play a Anim Montage. Im not sure if this is the correct way but it worksalt text

help.png (117.9 kB)
help2.png (46.1 kB)
help3.png (73.8 kB)
more ▼

answered Mar 22 '19 at 11:21 AM

avatar image

Deftones4
6 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