How to set player start location from Blueprint?

Hi, I added the default 3rd person character to my project, but on play, it starts somewhere outside the map and falls out of the world.

Since I’m creating my world procedurally, is there a way to set my player start location from blueprint? I’d like to set it at the end of my CreateWorld function when I actually know the bounds of my world (which is a randomly generated room).

Thanks

You put a player start in the world.

Failing that, you can just actually place your player where you want to start, and set possess to player 0. If you do that though, take your player out of the game mode, otherwise you end up with two.

Hi ClockworkOcean,

I know I can drag a PlayerStart Object into my level, but how do I place it from a Function at runtime? That’s what I’m looking for.

Ah. Then spawn your player where you want them to start :slight_smile:

Sorry, I don’t know what you mean. I got the player set in the GameMode of my Map. I’m just trying to set the player location to a place within my room, once the room is created which happens in Event BeginPlay.

Is there a blueprint node to set the player location, is all I’m asking for? :slight_smile:

No. You either have to move the player once the level has started

image

Or, you spawn the player in the right place

image

2 Likes

Thank you, that kind of worked. The spawn location of the character is still below my room but the x/y is correct. I hard coded a Z-components that makes the player spawn inside the room for now, I guess I’ll figure out what causes this in time.

1 Like