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"

Execute function on Client every n seconds

I am trying to execute a function on clients every 5 seconds. So I am using a timer and rpc. This is within a blueprint that exists in the world outliner. alt text

However, for some reason this toggles the wall on the server instead of the clients. I am getting the same results when using a multicast.

I am getting "Server: Toggling Wall" printed to the screen. Why would this be?

Product Version: UE 4.11
more ▼

asked May 04 '16 at 12:57 AM in Blueprint Scripting

avatar image

380 41 44 65

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

1 answer: sort voted first

I refreshed my replication knowledge and solved this.

There were multiple things wrong. 1) Replication wasn't turned on for the blueprint 2) I was using execute on owning client (which would always be the server since they were placed in the world) instead of a multicast. 3) The particle systems would always show as active (IsActive) on the dedicated server. I'm assuming this is because they probably don't exist on the dedicated server since they are visual.

I reworked this to be much cleaner by using a replicated property with RepNotify.

alt text

fixed.png (149.0 kB)
more ▼

answered May 04 '16 at 02:56 PM

avatar image

380 41 44 65

(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