Wikis / Unreal Wiki / Legacy:Vehicles Pre2004/Replication

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

Discussion.


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

Page Categories

Page Information

2022-11-18T15:42:12.969540Z 2007-11-17T12:52:37Z Dyn-62-56-58-176.dslaccess.co.uk Moved https://wiki.beyondunreal.com/Legacy:Vehicles Pre2004/Replication Attribution-NonCommercial-ShareAlike 3.0