So I am really newbie at unity at the moment and I do believe this script would work if it wasn’t written by me. I am trying to teleport my First person controller to x=10 y=3 z=-8.
I have three errors that conclude of:
< ‘;’ expected. Insert a semicolon. (when there is one)>
My script:
#pragma strict
function OnTriggerEnter (info : Collider){
if (info.tag == "Player"){
transform.position=10, 3, -8;
}
}
I understand that this error is just because I do not know how to JavaScript yet. Any help would be greatly appreciated
Cheers.