RPC Sync call/Delegate/Callback?

Swogers
Fri, 31 Mar 2023 01:53:39 +0000
C++

I wanted to know the method possible to call a Server RPC with a callback function.

I know Delegates do this, but you cant have a delegate within an RPC function. So i tried to pass a Self reference, and thats not helpful either.

Is there a way to easily return a value from an RPC back to the caller? ie, a success bool?
What about passing a reference to a function as one of the parameters? is there a way to simply call the function once the RPC is done with it’s logic? its really hard to program networking events if you never know if the server actually successfully did its job

3 posts - 2 participants