I had to use the code below to get ReplicatedEvent() to run.
// ReplicatedEvent() won’t get called by net code if we are the server
if(WorldInfo.NetMode == NM_Standalone || WorldInfo.NetMode == NM_ListenServer)
{ ReplicatedEvent(‘YourRepnotifyVar’); }
Thanks for the help guys. In that documentation it states:
This seems a little strange to me. So any time any other repnotify var calls ReplicatedEvent(), this causes all repnotify static arrays to also call ReplicatedEvent(), even if they haven’t changed. Meaning i may be performing unnecessary processing when reacting to a static array ReplicatedEvent() when some unrelated var repnotify.
I also feel I can’t rely simply on a separate bool repnotifying to indicate that an array has changed, as I was under the impression that two vars (that aren’t contained in a single struct) cannot be guaranteed to replicate at the same time.
This means I’m left with needing to perform the same logic on the array in ReplicatedEvent() every time any repnotify var fires. It seems like this feature (repnotify of static arrays) was not fully finished in UDK.