- Home /
EOF what does it mean?
it says expecting EOF found torquevalue (which is part of my script) could some1 enlighten me 2 what an EOF is :) cheers 4 the help ;)
walkSpeed = 8;
}
runSpeed = 13;
}
if(Input.GetButtonDown("Run")) { moveSpeed = runSpeed; }
if(Input.GetButtonUp("Run")) { moveSpeed = walkSpeed; }
This was my script. It is for sprinting, but my "Expecting EOF" Showed up on line 7! So what do I do?
End of File.
You have put something in your script where it shouldn't be.
$$anonymous$$issing ; { } something to that effect.
Usually with a syntax error like this you may find that the line it points to is in fact NOT the problem.
Go through from beginning of your script checking all ; and making sure all ( have a ) and { have a } And that you have used , and . where they are needed.
Answer by Brent Taylor · Oct 02, 2010 at 08:22 AM
Without actually showing us the code we can't tell you precisely what the problem is. However, "EOF" stands for "End Of File". Assuming you're using Javascript or C#, this error is usually thrown when you've forgotten an ending curly brace for a block of code.
Answer by goodymic · Sep 24, 2013 at 11:53 AM
i am making a script for melee in my game. and i used this code:
#pragma strict
var TheDammage : int = 50;
var Distance : float;
function Update ()
{
if (Input.GetButtonDown("Fire!"))
{
var hit : RaycastHit;
if (Physics.Raycast (transform.position, transform.TransformDirection(Vector3.forward, hit))
)
Distance = hit.distance;
hit.transform.SendMessage("ApplyDammage", TheDammage, SendMessageOptions.DontRequireReceiver);
}
}
}
but it says i am missing eof what should i do
but at this bit.
hit.transform.Send$$anonymous$$essage("ApplyDammage"), TheDamage, Send$$anonymous$$essageOptions.DontRequireReceiver);
it says Unexpected token:,.(BCE0043)
Posting Question as answer AND on someone elses QA? Not good man.
Answer by kuntzg · Mar 07, 2014 at 08:39 PM
On line 60 it says expecting EOF found else Help!!@
var normalSpeed:float=6.0; private var speed:float=normalSpeed; var runSpeed:float=12.0; private var jumpSpeed:float=speed*1.7; var gravity:float=20.0; private var walkTime:int=0; private var moveDirection:Vector3=Vector3.zero; static var grounded:boolean=false; private var controller:CharacterController; 10. private var flags:CollisionFlags;
function Start(){ animation.wrapMode=WrapMode.Loop; animation["run"].layer=-1; animation["walk"].layer=-1; animation["idle"].layer=-1; animation.SyncLayer(-1);
animation["jump"].layer=10; 20.animation["jump"].wrapMode=WrapMode.Once; animation.SyncLayer(10);
animation.Stop(); animation.Play("idle");
}
function FixedUpdate(){ 30. if(grounded);{ moveDirection=new Vector3(Input.GetAxis("Horizontal"),0,0); moveDirection*=speed; if(Input.GetButton("Jump")){ moveDirection.y=jumpSpeed; animation.CrossFade("jump");
}
40.}
moveDirection.y-=gravity*Time.deltaTime; conroller=GetComponent(CharecterController); flags=controller.Move(moveDirection*Time.delta.Time);
ground=(flags & CollisionFlags.CollidedBelow)!=0;
if(Input.GetAxis("Horizontal")>.2(Input.GetAxis("Horizontal")<-.2)) if(walkTime>40){ 50. animation.CrossFade("run"); speed=runSpeed; }else{ walkTime++; animation.CrossFade("walk"); speed=normalSpeed; } jumpSpeed=speed*1.7;
}else{ walkTime=0; animation.CrossFade("idle"); }
@script RequireComponent(CharacterController)
Your answer
Follow this Question
Related Questions
BCE0044: expecting EOF, found }` error In my scripy 2 Answers
Error BCE0044 plz help 0 Answers
Errors in Vector2 variables 1 Answer
expecting EOF, found 'else'. 2 Answers
I need help with an error 1 Answer