UCE0001: ';' expected. Insert a semicolon at the end.
hi i need help were is my error? pls help me i don't now what to do.
pragma strict
private var chMotor : CharacterMotor (ScriptEngine)
private var superSprint : boolean = false; private var superJump : boolean = false; private var slowMo : boolean = false; private var hawkEye : boolean = false;
var mainCamera : Camera; var zoom : int = 20; var normal : int = 60; var smooth : float = 100;
var commands : Texture;
function Start() { chMotor = GetComponent(CharacterMotor); }
function Update() { //Super Jump if(Input.GetKeyDown("1")) { superJump = !superJump;
if(superJump == true)
{
chMotor.jumping.baseHeight = 100;
chMotor.movement.maxFallSpeed = 200;
}
else if(superJump == false)
{
chMotor.jumping.baseHeight = 10;
chMotor.movement.maxFallSpeed = 20;
}
}
//Super Speed
if(Input.GetKeyDown("2"))
{
superSprint = !superSprint;
if(superSprint == true)
{
chMotor.movement.maxForwardSpeed = 50;
chMotor.movement.maxSidewaysSpeed = 50;
}
else if(superSprint == false)
{
chMotor.movement.maxForwardSpeed = 6;
chMotor.movement.maxSidewaysSpeed = 6;
}
}
//Slow Motion
if(Input.GetKeyDown("3"))
{
slowMo = !slowMo;
if(slowMo == true && Time.timeScale == 1.0)
{
Time.timeScale = 0.3;
}
else
Time.timeScale = 1.0;
Time.fixedDeltaTime = 0.02 * Time.timeScale;
}
//Hawk Eye
if(Input.GetKeyDown("4"))
{
hawkEye = !hawkEye;
if(hawkEye == true)
{
mainCamera.fieldOfView = Mathf.Lerp(mainCamera.fieldOfView, zoom, Time.deltaTime * smooth);
}
else if(hawkEye == false)
{
mainCamera.fieldOfView = Mathf.Lerp(mainCamera.fieldOfView, normal, Time.deltaTime * smooth);
}
}
}
Answer by ClearRoseOfWar · Jan 09, 2016 at 12:14 AM
I don't mean to be rude but seriously, are you kidding? Or just lazy? The error message is pretty specific on what the problem is... and on top of that.. its the first line of code dude... private var chMotor : CharacterMotor (ScriptEngine)
... Put a semicolon on the end;
Your answer
![](https://koobas.hobune.stream/wayback/20220612055506im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Unity: Assertion failed 'succeeded(hr)', screen goes partially white 0 Answers
Error, host set to 1 Answer
Hundreds of Errors In A Fresh Project 0 Answers
Help!!!Always error: TargetParameterCountException: parameters do not match signature! 0 Answers
error CS0101: The namespace `global::' already contains a definition for `GameManager' 3 Answers