- Home /
Question by
Tyler Starr · Jan 22, 2011 at 11:35 PM ·
bulletrespawn
Character Re-spawn Problem
I have a Script:
private var StartPos : Vector3;
function Awake()
{
StartPos = transform.position;
}
function OnTriggerEnter(other : Collider)
{
if(other.gameObject.name == "fallout")
{
//print("die! Respawn to:"+StartPos);
transform.position = StartPos;
}
}
And My Character (a bullet has a constant force to move it) and when i hit the obstacle my Bullet re-spawns, but it doesn't re-pawn stopped. It keeps going after respawn.
How can i fix this problem?
All help is appreciated
Thanks
Comment
Your answer
Follow this Question
Related Questions
Turret Bullets hurt me 2 Answers
FPS spawn bullet 0 Answers
Enemy respawn once hit by bullet please help 1 Answer
Bullet Spawn 3 Answers
raycast not doing good 1 Answer