View Full Version : Respawning player on death

24/09/2017, 12:41 AM
Hello, I'm facing issue in my custom damage system that when I respawn dead player from plane crash explosion, player position on spawn is not set to hospital coords (hes still in air near plane, but onplayerspawn is getting called correctly, just position doesnt seem to be updating).

I use SetSpawnInfo and SpawnPlayer inside OnPlayerDeath to skip Class Selection and proceed to OnPlayerSpawn.

24/09/2017, 01:26 AM
Class selection isn't shown on a normal death so there is no need to skip it on player death.

If you haven't done the right checks for the callback you use to 'skip' the selection, then it's likely that this is where the problem lies.

24/09/2017, 09:17 AM
I was thinking that firstly too, but for me it really does getting called. I can even see the gui, arrows and spawn button.

24/09/2017, 11:29 AM
That should only be brought up when using F4, I'd check the OnPlayerDeath callback for anything that points to the class selection.