dedicated server gamestate elements

The Dynamic Material Instances should be created in the Construction Script.

Replication Subsystem doesn’t care if your class is ready or not to receive the replicated variables. It checks if there are properties to replicate and sends.

The onrep function needs to validate the DMI references and you should have a Set Vector Param for each. Don’t double up on targets.

OnRep_Current Colour:
Colour Material → Isvalid → Set Vector Param (Current Colour)
Colour Material 02 → Isvalid → Set Vector Param (Current Colour)
Print String(replicated), duration 5 seconds.

Everything else looks fine.


Here’s an example from one of my projects.
The repnotify var is an ID. I use it for data table look up which spits out a cosmetic struct. Then I run a Sequence.

Then 0 checks if the DMI’s are Valid. If not they are created and set.