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"


Hi, I started going through the replication system today. I am using C++ so there is not much documentation or guides on c++ sadly.

I was going through the the shooter example codes. I found some macros used like


What are their functions and what do they do exactly?

I also found functions called GetLifetimeReplicatedProps and PreReplication in the shooter class.

What are their uses?

Are there any in depth replication documentation or guides for c++ out?

Product Version: Not Selected
more ▼

asked Oct 15 '14 at 06:50 PM in C++ Programming

avatar image

418 76 117 145

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

2 answers: sort voted first

Have you looked into this Wikisite?


At the bottom there are c++ examples.

I know that you asked for the meaning the the functions (i can't help there), but i don't know if you have problems using the system at all. So i hope this site helps you.

more ▼

answered Oct 15 '14 at 07:34 PM

avatar image

6.7k 330 184 464

avatar image envenger Oct 16 '14 at 05:39 PM

Seen it but it don't exactly mention what the DOREPLIFETIME and similar function does and why is it written inside GetLifetimeReplicatedProps function.

As far as I know having UPROPERTY(Replicated) alone replicates the variable. So why are the extra things needed?

avatar image envenger Oct 16 '14 at 06:27 PM

I went through the file UnrealNetwork.h

Where those macros are declared but I there is no definition on what they exactly do and how they work.

avatar image eXi Oct 16 '14 at 06:44 PM

Found something for you i guess:


The macro is for more controll. It's a condition. Just read the part at



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

I found a thread that covers this. It begins with the blog post that eXi provided in their comment. The thread covers a bit more, however, including the 'override' version of the macros.


more ▼

answered Dec 01 '16 at 11:57 PM

avatar image

4.4k 31 77 40

(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