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"

Blueprint replication snippet works if comes from Begin Play but not from Input event

Hi, I've set a blueprint up so a RepNotify variable value should be changeable in two ways: from Begin Play and from an Input event (when a key is pressed).Replication only works from the Begin Play case, not the Input event, even the snippet is the same for both (modifing the variable). Do you know why and how to solve it?

Edited with a capture:

alt text

The actor only spawns in Begin Play case, that's why I think replication isn't happening.

Product Version: Not Selected
Tags:
more ▼

asked Jun 27 '14 at 05:41 PM in Blueprint Scripting

avatar image

Albert Espín
962 80 97 358

avatar image Albert Espín Jun 30 '14 at 02:49 PM

Any ideas?

avatar image bluebeat1 Aug 06 '14 at 08:21 PM

I have the same problem. I think this is due to Event Begin Play is executed on both server and client, whereas Input Events are only firing on clients. I also would like to know how to solve this.

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

Where are you calling "Input action Shoot" from? If you are calling it from the playercontroller then you need to ask the server to change the variable for you. Create a custom event which is set to run on server, and the call that event when you press the button. When the server changes a replicated variable the value is replicated to all clients and the the Repnotify function is also called on all clients (and the server). Hope this helps. and check this link as well: RPCs

more ▼

answered Jul 20 '15 at 09:41 AM

avatar image

Number47
11 4 7

(comments are locked)
10|2000 characters needed characters left
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