Making a kill volume and player start follow the character

Hello! I’m a complete newcomer to unreal and started doing an endless runner as my first project. my issue is that i intend to allow the player to fall from the plattform at any point but since it’s an endless game i need the kill volume bellow to somehow follow the character while staying bellow the track (if there’s any way to make an “infinite” kill volume then that can help too) I also have the same issue with the player starts for spawning the player back on the track when they fall but both of those actors are permanently on the start position. any help would be greatly appreciated!

There is the notion of a “World” kill Z. Under the “World Settings” set the “Kill Z” to something more reasonable…no need to use a kill volume if a world sized volume is what you want.

As for the player start, there are likely going to be a couple of ways to approach that. Let me think a little bit and see if I can’t come up with something.

EDIT: Ok, assuming that the wanted behavior is that the player start sits at the last place the player touched the ground…meaning he can’t jump out of bounds and gain ground that way…then a simple/effective approach would be to simply draw a line trace from the bottom of the pawn and if it hits something then set the player start location to that location. Of course you’ll need to make sure the height of the player start is such that you won’t incur a collision when the player spawns there. Other than that the only issue I can think of might be considering locations where you don’t want the player to be able to spawn. Could get dicey.

i tried that but it was killing my character on x and y axis too…

I ended up parenting a kill volume to my floortile and on death get the x position of my character to spawn him back on the track

Since it’s an endless runner it doesn’t make sense to use a volume positioned anywhere. Best just do a simple calculation on the character whenever it falls off the track. While the character falls compare its Z height to the track Z height and if it reaches a distance of X units kill the character.