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"

How to Send data from client to server in Unreal

Hi, Am working on a Multiplayer game where a player Host's a game session and other players or clients join in the session and can play the game. Am trying to send some integer data from client to Server passing through custom event and making them to "Run on Server". I have placed this code in Player state. The problem is that the data sent from client is not getting passed to server. The Server machine is only duplicating it's own values instead of storing client data. Any one has faced this issue.

Product Version: UE 4.8
more ▼

asked May 05 '16 at 04:40 AM in Blueprint Scripting

avatar image

8 1 3 7

avatar image ryanjon2040 May 05 '16 at 05:21 AM

Did you set the integer to replicate?

avatar image phani33 May 05 '16 at 05:50 AM

yes, i have tried to replicate the integer variable, but doesn't work

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

1 answer: sort voted first

Is the PlayerState the initiator of the custom event or just the blueprint that holds the event? I've had problems, secificaply with widgets, where I will cast to another blueprint and execute a custom event set to run on server, and it doesn't work.

more ▼

answered May 05 '16 at 12:36 PM

avatar image

84 2 5 12

(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