Spawn actor in multiplayer by Beginplay
Hi, I want to spawn 2 cubes right next every character when I start the game, one for server and one for Client. Here is my blue print.My problem is: when I star the game, I have 2 cubes, bui they are all right next to Server character.What should I do to spawn a Cube for every player and right next to them?
asked Jan 31 '19 at 04:46 PM in Blueprint Scripting
GetPlayerController with index of 0 in a Server call will always return the Server's PlayerController. Instead replace it with GetController of the Character/Pawn. That way you get the correct PlayerController in a Server call.
answered Jan 31 '19 at 05:00 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here