Legacy:Vehicles Pre2004/Replication - Unreal Wiki

# Legacy:Vehicles Pre2004/Replication

### From Unreal Wiki, The Unreal Engine Documentation Site

< Legacy:Vehicles Pre2004

### Structs

The replication of a struct doesn't seem to always work! When this happends, replicate a variable after the struct. That seems to help (don't forget to change the AVar in game, or it won't get replicated).

    var int AVar; //Just for replication, else the VehicleState won't be replicated.

    Replication
    {
            unreliable if(Role == ROLE_Authority)
                    VehicleState, AVar;
    }

### Related

- Introduction to Replication
- Replication
- Replication Block
- Role and RemoteRole, and NetMode.
- Netcode Idioms
- Simulated Function
- Replicated Function
- KActor Replication
- Vehicles/Replication
- Animation Replication
- Another Look At Replication
- Replication examples

### Discussion.

Category:Legacy To Do – This needs merged into the grand topic of Replication. See Replication/Discussing

Category: Legacy To Do

##### Views

- Legacy
- Discussion
- Current revision

##### Search