How to Create Multiple Level Spawnpoints?
So, as with many RPGs, levels have many spawning points.
Let's assume there's a level where you start in the center, but you can go through passages on the left or to the right. If from either passage you walk back into the room, instead of respawning in the center, how can I have the player respawn in the level next to the way they exited, rather than the level's spawn?
Here's an example:
Let's assume this is Level 0. If the player walks up to the Left Exit, they'll enter Level 1, but if FROM Level 1, they enter the right exit, then they'll enter Level 0 again, but next to the Left Exit, not the center of the level, where'd they'd spawn by default.
If anyone could help that'd be great. Have a nice day :)
asked Aug 09 '18 at 02:37 PM in Blueprint Scripting
If you create your own GameModeBase, you can override its ChoosePlayerStart or FindPlayerStart functions and use GetAllActors to loop through all PlayerStarts in the level and pick the one you wish to spawn at.
answered Aug 09 '18 at 06:32 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here