SetSpawnInfo desyncing player skin
#1

Hey, don't know if this has been posted.

But if SetSpawnInfo is used in OnPlayerSpawn, the player will see himself as the skin he was supposed to spawn as, but anyone else will see him as the skin set in SetSpawnInfo.

I use this method to allow players to /sync themselves.

Example...

I'm a Grove, but am playing a minimode where I am a construction worker. I use /sync which uses SetSpawnInfo to place me where I was in the minimode, with the construction worker skin I had, and then respawns me.

In OnPlayerRespawn, there is a SetSpawnInfo to set my original Grove skin/weapons, so that if I die, I will come back as a Grove.

However, although I see myself as a Construction Worker, everybody else sees me as a Grove.

The only workaround is to delay the SetSpawnInfo in a timer, so that I have time to spawn on everyone elses screen.

(My apologies if this is a little bit difficult to read or understand).
Reply
#2

You should use it before on player spawn, or use SetPlayerPos/SetPlayerSkin etc.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)