How to generate random spawn location for player start?

Just trying to randomize a player start location without creating multiple player starts. I tried creating a blueprint for the lyra player start class but I cannot access the capsule component from inside the blueprint. How can I change the transform of the player start on spawn? It doesnt have to be in blueprint, cpp is fine if not preferable.

I would try to change the location of the Player Start objects in the level.

Get all actors of class (PlayerStart) → For each loop, set a random location or whatever.

1 Like