SetPlayerPos or SetSpawnInfo
#1

Which is more recommendable, use 'SetPlayerPos' in 'OnPlayerSpawn' or 'SetSpawnInfo' in 'OnPlayerDeath'?
Reply
#2

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

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'?
Reply
#4

Quote:
Originally Posted by Volumen
Посмотреть сообщение
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'?
That is how it is designed to work it looks smoother too the player will spawn where they SHOULD spawn.
Reply
#5

'SetSpawnInfo' then?
Reply
#6

Quote:
Originally Posted by Volumen
Посмотреть сообщение
'SetSpawnInfo' then?
Yes.. @Pottus explained why in his precedent posts.
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)