Creating a spawn point

Hello, I am looking for a blueprint that will spawn a player at the last object they touched. For example, player 1 touchs box 3, player 2 touchs box 1. Player 1 and player 2 both die and spawn that the last box they touched. I know its an actor transform but I have not been able to find anything on how to accomplish this. Can someone point me in the right direction.

You could set up a Transform variable in the playerBP that gets set on begin play to the starting world transform and create a function “SetTransform” that sets a new value to that variable which would get the playerBP’s current transform…then when the player touches a box the boxBP can call that function on the player thereby setting the transform value to the transform that the player touched the box…then when it is time to respawn just grab that variable’s value.

I should add though that destroying the playerBP at death and respawning a new one is going to cause a hit on performance…it would be better to create a function that for example sets health variable back to a starting point and then set the transform of the player to the respawn transform. This should help get you in the right direction:

Thanks for the info but I am new to blueprint and I have no idea how to make this work. I tried your print and I am not sure what I am doing.

Ok, lets take it one step at a time then…in the BoxBP how are you determining if the player has touched the box? A collision overlap event or an actual impact (Hit component) event?