RepNotify

From Unreal Wiki, The Unreal Engine Documentation Site
Revision as of 01:02, 26 June 2010 by Payback (talk | contribs) (Created page with '==RepNotify== The keyword '''RepNotify''' is used to trigger the Replicated Event at the point it is replicated. Syntax: var repnotify PlayerReplicationInfo PlayerReplicati…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

RepNotify

The keyword RepNotify is used to trigger the Replicated Event at the point it is replicated.


Syntax: var repnotify PlayerReplicationInfo PlayerReplicationInfo;

You can then trigger code when the variable has been replicated.

simulated event ReplicatedEvent(name VarName) { if (VarName == 'PlayerReplicationInfo') { if (PlayerReplicationInfo != None) { PlayerReplicationInfo.ClientInitialize(self); } } else { Super.ReplicatedEvent(VarName); } }