Download

Are variables in PlayerState classes replicated automatically?

Hello dear community,

I have a question you can take right from the topic:

Are variables in PlayerState classes replicated automatically? Or do I have to setup the GetLifetimeReplicatedProps function?
I tried to implement it but it gives me a lot of errors.

Best wishes,
Nicolas

Only the ones which are flagged to be replicated.
What errors are you getting?

You must implement DOREPLIFETIME, and of course they must be UProperty() vars.