when a player dies
#1

so i'm working on a deathmatch gamemode. when a player requests class selection a dialog is shown and gives you a list of deathmatch arena's that you can join. i have put random spawn points in every single deathmatch arena but my problem is that when a player dies he'll respawn outside of that dm arena, how do i make them respawn in the same arena they died in?
Reply
#2

Save the choice of arena in a variable. Then on OnPlayerSpawn check what arena the player is in, and set their spawn accordingly.
Reply
#3

how do i go about doing that? sorry if that's too much to ask. i'm actually new to scripting.
Reply
#4

nevermind, i got it working. thanks!
Reply
#5

Sorry I couldn't respond earlier. I'm glad you solved the issue!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)