I’m spawning an actor and attaching it to a component. The actor is set to replicated. If I do:
switch network authority; authority → SpawnActor BP_My_Actor → call custom event Attach_Event with parameter set to the actor.
And then have Attach_Event be reliable multicast and call: AttachActorToComponent-> with the target set to the parameter
I get a failure. If I add a delay before calling the Attach_Event custom event, everything works fine. I assume this is because without the delay, when the attach event fires, the actor hasn’t been replicated yet. What is the proper way to wait on the replication before making the event call? The delay works, but may not in the real world with network reliability, latency, etc.
What I’d like is something like a “Wait until replicated” blueprint node that takes the replicated actor as a parameter and only runs once the server knows the actor has been replicated everywhere. Maybe something like this already exists and I just missed it?