- Home /
Whats wrong here?
trying to enable the user to move after already dying and respawning. private var dead = false; private var respawn = true;
function OnControllerColliderHit(hit : ControllerColliderHit) { if(hit.gameObject.tag == "FallDeath") { dead = true; } } function Update() { if (dead) { respawn = true; } } function update() { if (respawn) { transform.position = Vector3(0,1.5,0): { dead = false; } } }
Please, format your code using the "Code Sample" button (the one with the 101010).
@NewUser14 : You've been posting questions since mid-September, every one of which draws comments suggesting you use the code formatting/Code Sample button. You never do. You've also never yet selected a correct answer.
If you care so little about your questions why should anyone else care either?
Your answer

Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Vehicle Script Debugging 1 Answer
Need a bit of help with my script (about 100 lines) 1 Answer
How to make the trigger work only once. (SOUND) 1 Answer
Score System help 1 Answer