You now the thing when client’s pawn have just spawned and need to retrieve state from server. In my case I need to at least get pointer to PlayerController what just possessed Character for it’s Gun Component.
And for this simple situation I haven’t found solution without delaying for time greater than ping.
As I can understand for client’s pawn next things happening:
The last time point, where Pawn is being controlled by client PC, is the point where I need to init the gun, because I sure I have pointer to PlayerController to use. But there is no events are being triggered!
I’ve tried to add delay in BeginPlay event for about 1 sec. After one second Pawn gets it pointer to PC and now I can use it, but this directly depends on ping, and if ping will be 600 ms, then no pointer will exist even after 1 second, so I need to get pointer only when it assigned.
How I can get Player Controller pointer as soon as Pawn receives it?