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 ;)
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.
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-=gravityTime.deltaTime;
conroller=GetComponent(CharecterController);
flags=controller.Move(moveDirectionTime.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)
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