- Home /
Question by
Flintlockphilly · Feb 20, 2015 at 12:25 PM ·
movementplayerrespawn
Player can't move upon respawning in a new position.
I dont think this has been asked before. (Sorry if im wrong)
But i have no clue why this is happening. I'm trying to create a new spawn poing where the player will spawn using this script
var SpawnPoint : Transform;
var respawn32 : boolean = false;
function Update () {
if ( DoorLogic_03_02.Portal32 == true)
{
respawn32 = true;
}
if(respawn32 == true)
{
transform.position = SpawnPoint.position;
}
}
But when i insert the gameobject into the inspector thing it works but i cant move!
I used an empty gameobject btw.
this is hurting my brain
Portal32 is the boolean that changes the spawn btw
Comment
Answer by hexagonius · Feb 20, 2015 at 12:57 PM
You should probably set respawn32 to false after you've set the transform
Your answer
![](https://koobas.hobune.stream/wayback/20220613183802im_/https://answers.unity.com/themes/thub/images/avi.jpg)