I been having some issues with the delay in NewObject creation info from the server to the clients, in which i need to set the variables for the NewObject.
basic flow of info would be:
- NewObject BoxComponent (RPC)
- SetTimer to functionA (NetMulticast)
- functionA - do something to the variable of the newly created BoxComponent.
The server side works fine with variables. But the problem is i cant be sure when the info will reach the clients (from server) for me to assign the variables to the BoxComponent.
i did a “hack” in use of the tick function to solve this issue but that doesnt seem to be the right way of doing things.
I knew that custom created c++ class with its own constructor can solve the assigning values right from the start. But let us say i am more interested in dealing with the delays from the server to the clients and the proper way of doing things.
Can someone please share their expertise?