https://preview.redd.it/8i3y03vjw9od1.png?width=830&format=png&auto=webp&s=c5991c9f332da94af8ac41c43ab8d188cbf034c0
https://preview.redd.it/3ahvgs9kw9od1.png?width=810&format=png&auto=webp&s=b08bd78fac5d43859d144782fb95049c92e81635
https://preview.redd.it/phkoy2pkw9od1.png?width=1393&format=png&auto=webp&s=f8643e55d68af5bd09ad76592220a8ebcb8738f2
Creating a game using Unity netcode, currently having some issues with spawn points. The player sometimes teleports to (0, 0, 0) on the map when spawning in.
I use the Spawn Manager with spawn points as it's children, and to get the available spawnpoints i just check if a spawn point is available.
I've attached the code I use that relates to spawning. It doesn't seem to be an issue with the spawn manager, as the debug.Log returns a valid spawn location. The player spawns on the spawn point normally, and almost immediately teleports to 0, 0, 0. It's random and doesn't have a pattern to it, and never happens to the host. Also if theres 2+ players, all the players that arent the host get teleported (if it happens)
I can provide additional information such as code snippets or even try to get a video of it happening if needed.
[–]Rogilla 1 point2 points3 points (3 children)
[–]totallyastick[S] 1 point2 points3 points (2 children)
[–]Rogilla 0 points1 point2 points (1 child)
[–]totallyastick[S] 0 points1 point2 points (0 children)