Posts: 47
Threads: 8
Joined: Dec 2018
Reputation:
0
Which is more recommendable, use 'SetPlayerPos' in 'OnPlayerSpawn' or 'SetSpawnInfo' in 'OnPlayerDeath'?
Posts: 4,885
Threads: 57
Joined: Jun 2012
Reputation:
0
SetSpawnInfo() of course you should KNOW how the player is going to spawn next time they spawn so why not set it? You can always set it as many times as you want before they spawn if there is other events that change the outcome. To me it makes more sense to use the correct function for the correct task yes SetPlayerPos() will work but that is not what it is designed for.
Posts: 47
Threads: 8
Joined: Dec 2018
Reputation:
0
I have always used 'SetPlayerPos' in 'OnPlayerSpawn' and in 'OnPlayerDeath' I only adjust the player's score (it is a multimode freeroam server).
Should I use 'SetSpawnInfo' in 'OnPlayerDeath' and remove 'SetPlayerPos' from 'OnPlayerSpawn'?