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"

Replication questions

I've read much so far on replication in UE4 and I wanted to see if my understanding is correct and few questions about replication. Please correct me where I'm wrong

What I've learnt so far

  1. Setting a variable to replicate will replicate its values on the server to all the clients.

  2. Calling a function marked server will only run on the actor in the server

  3. calling a function marked client will only run on the actor in the owning client

The questions:

  1. If you spawn an actor on the server when and how would their replicated simulated proxy spawn on the clients? Can you control on which clients the replicated proxy must exist? and do any functions called on server object ever replicated to client version if not marked to replicate like if I want character to walk forward I'll have to call it on both server and client to make the animation work on client isnt it?

  2. What defines the roles for the actors i.e can you set it manually to get desired behaviors or is it assigned automatically based on how it was spawned and what class it belongs to, like is pawn always simulatedProxy and PC always autonomousProxy?

  3. If I want to spawn something that is just cosmetic (e.g. gun muzzle flash) and hence irrelevant to server I would like to spawn it only on the client , do I need to always use multicast for such cases?

  4. Who owns the object placed in the level while it was being designed in the editor, how is replication handled for those? are those server owned ?

  5. If an object is spawned by game mode then there might be no playercontroller in its owner chain can this object call replicated functions?

Product Version: UE 4.8
Tags:
more ▼

asked Jul 23 '15 at 11:06 AM in Blueprint Scripting

avatar image

Commander Shepard
807 62 83 219

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

0 answers: sort voted first
Be the first one to answer this question
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