Posts: 24
Threads: 7
Joined: Feb 2019
Reputation:
0
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?
Posts: 777
Threads: 25
Joined: Jul 2010
Reputation:
0
Save the choice of arena in a variable. Then on OnPlayerSpawn check what arena the player is in, and set their spawn accordingly.
Posts: 24
Threads: 7
Joined: Feb 2019
Reputation:
0
how do i go about doing that? sorry if that's too much to ask. i'm actually new to scripting.
Posts: 24
Threads: 7
Joined: Feb 2019
Reputation:
0
nevermind, i got it working. thanks!
Posts: 777
Threads: 25
Joined: Jul 2010
Reputation:
0
Sorry I couldn't respond earlier. I'm glad you solved the issue!