Multiplayer spawn points blueprint
Hello all! I have a question regarding multiplayer spawning, and before I go into that question in detail I am relatively new to UE4 and scripting in general, so bear with me. My question is, is that in a multiplayer game using blueprints how do you make the player spawn on a different spawn point than the other "teams" spawn? I know there is a C++ way to do this, but I need a way to do it in blueprints. Thanks in advance!
First create PlayerStart class which you will extend with new variable, called Team, it could be integer with team number (0 could be any team ;]) or enum, you can also create team class or something.
Place your (not default from engine) PlayerStart on level and in detales tab you should able to edit team varable, using it you can set PlayerStart to be set to specific team
In your GameMode on begin play search for all PlayerStarts and put them in array for all teams each (so you got 2 teams you got 2 arrays), depending on there Team varable state (in case of integer, if its 1 put it in first array if 2 then i 2nd array)
Now override (cover over function you will have override menu) FindPlayerStart. This function is called when player is about to spawn and spawn system asks you which PlayerStart to use and it will give you PlayerController of player that is about to be spawned. Based on that assign proper PlayerStart from specific array, by checking in PlayerController is assign to specific team (so in PlayerController you also will need ot ass Team varable).
If you know C++ solution, try to recreate it in blueprints, blueprints use same APIs, it maybe has limited access to it but you can do lot of stuff with it.
There many ways you can go with it, i just give my example, but try thinking for yourself, there will be amny other system to made so you need to develop logical thinking on figuring out to make those systems, or else you end up always asking how to do things
Follow this question
Once you sign in you will be able to subscribe for any updates here