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"

Setting a replicate variable on server.

Basically, as the title says, I'm trying to set a replicated variable on the server and access it from the client;

I'm using VaRest to pull JSON information from an API, then through the GameMode(I want the api communication to all happen on the server) I cast to the game instance and set the replicated variables(stored on the game instance)

Then on the client (player controller ) I am casting to the game instance and checking the variable.

It sets on the server but not on the client, I even tried RepNotify, any hints?

Product Version: UE 4.12
Tags:
more ▼

asked Oct 01 '16 at 01:52 AM in Blueprint Scripting

avatar image

TheMunky
126 13 18 25

avatar image ImVawx ♦♦ STAFF Oct 03 '16 at 12:37 PM

Hey TheMunky,

Can you show me how you are trying to replicate your variable?

Thanks.

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

1 answer: sort voted first

We have not heard back from you in a few days, so we are marking this post as Resolved for tracking purposes. If you are still experiencing the issue you reported, please respond to this message with additional information and we will follow up.

more ▼

answered Oct 11 '16 at 12:44 PM

avatar image

ImVawx ♦♦ STAFF
6.8k 114 18 128

(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