Replicated UFUNCTION parameter restrictions
I'm having an issue currently which I can't quite get my head around, I'm trying to pass an array as a parameter to a function which should only run on owning client.
When I define it like this:
It says that it wants the array passed as a const reference, similar to how it wants them passed if it needs to be blueprint visible
But when I define it like this:
It throws this linkage error:
Note that if I take out the UFUNCTION(Client, Reliable) - then it's more than happy to compile, but when it's a replicated function, it doesn't like the array either as a pass by value, or as a pass by const reference.
So how do I pass an array as a parameter to a replicated function?
asked Feb 28 '16 at 05:22 AM in C++ Programming
In your CPP file you should name the function as:
The reason is that the UE4 build system automatically creates:
Hence, it complains about two definitions being there.
Follow this question
Once you sign in you will be able to subscribe for any updates here