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"

Blueprint Variable Replication Not Working

Hi Everyone,

I'm scripting a simple player ready-up system in Blueprints, and for some reason the "playersReady" variable (stores the amount of players currently ready) is not updating on the clients.

I'm new to Unreal and Blueprints (coming from a Unity background) so any help is much appreciated!

First, in the Character Blueprint, input is checked to see when they press the ready-up key. If they press it, it executes an RPC on the server called "onPlayerReady."

alt text

Then, the server will update the variable accordingly in the GameMode blueprint.

alt text

Here is the "playersReady" variable settings...

alt text

Finally, although this is probably not part of the problem, the UI is updated to show the current amount of players ready out of the total players connected.

alt text

^ I know I should not be updating the UI every tick, it's just for testing right now.

From my testing, only the server can ready up, and the amount of players who are ready is not synced to the clients. Once again I'm new to all this Blueprint stuff, so I really appreciate any help that can be provided.


Product Version: UE 4.16
onplayerready.png (58.4 kB)
playersready.png (18.5 kB)
ui.png (189.5 kB)
more ▼

asked Jul 01 '17 at 01:32 AM in Blueprint Scripting

avatar image

1 2

avatar image Im_Link Dec 26 '17 at 07:23 PM


Did you ever get this ready up system working? I'd be interested in taking it for a spin.

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

1 answer: sort voted first

Apparently, all RPC's (custom events) need to be in the character controller blueprint.

E.g. You can't call an RPC on the GameState blueprint that runs on the server.

more ▼

answered Jul 01 '17 at 02:33 AM

avatar image

1 2

(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