question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to set player's spawn location

See original GitHub issue

Short description SpawnSystem ignores changes in spawn location.

Expected behaviour First of all, my apologies if I am just missing something. However based on a brief scan of the source code, I would expect, that if I change the position of SpawnSystem location, the player will spawn at this new position.

This is not the case. The player always spawns at the default (0, 0, 0) position. The SpawnSystem.cs script is passing the correct position to the InstantiatePlayer method so the problem must be somewhere else.

To Reproduce Steps to reproduce the behavior:

  1. Go to TestingGround scene
  2. Change the position of Location 01 (child of SpawnSystem game object)
  3. Hit play
  4. Player spawns at position 0, 0, 0, ignoring the position you set in SpanSystem’s location

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
ciro-unitycommented, Nov 22, 2020

Thanks everyone for chiming in. I have asked the 3d modeler to remove the keys from the model’s root, she provided me with new models which will soon be integrated on main and art-assets, which should fix this issue.

0reactions
ciro-unitycommented, Nov 27, 2020

Thanks! And yes, we implemented the fix as described by @jandd661

Read more comments on GitHub >

github_iconTop Results From Across the Web

setworldspawn is not spawning players to the exact place
Unlike spawning at the world spawn, a player's spawn point is set at specific coordinates; the player will always respawn on the same...
Read more >
Need Help With Server, Players Cannot Choose Spawn
I can make a new character I just can not spawn in a new location. Any help would be greatly apricated!
Read more >
How to disable/enable spawn locations for specific players
If you want you can disable each team's 'AutoAssignable' property and then enable each spawn location's 'AllowTeamChangeOnTouch' property. https ...
Read more >
Can't set World Spawn for New Players
No matter what I do I cannot set the world spawn for new players. ... the middle of the world, NOT the location...
Read more >
How to Set Your Minecraft Server Spawn - Knowledgebase
This command will set a Minecraft world's spawn point to the current location of the player who issued the command. This must be...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found