- Home /
This question was
closed Nov 10, 2013 at 08:43 AM by
meat5000 for the following reason:
He solved it...don't worry
Question by
gearlive · Nov 09, 2013 at 07:10 PM ·
error-messagebasic programmingsyntax error
Very Basic BCE0019 error
Hi i need help with my respawn script when the character variable is a Transform it tells me to assign a character but when its a gameobject it gives me the BCE0019 error.
pragma strict
var character : GameObject; var sealevel = 170.0; var spawnpoint = Vector3(479, 188, 1550);
function Update () {
if(character.position.y < sealevel)
character.position = spawnpoint;
}
Comment
Follow this Question
Related Questions
How can i reset unity to default? 0 Answers
Error building Player because scripts had compiler errors 0 Answers
Unity Error on Startup ? 0 Answers
await creates error with StreamReader 1 Answer
Code Error, help please? 2 Answers