Respawning player on death
#1

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.
Reply
#2

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.
Reply
#3

I was thinking that firstly too, but for me it really does getting called. I can even see the gui, arrows and spawn button.
Reply
#4

That should only be brought up when using F4, I'd check the OnPlayerDeath callback for anything that points to the class selection.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)