I Have an error with this reload script
var ClipBullets : int = 15;
var Clips : int = 10;
var reloadTime : float = 0.5;
var CurrentBullets : int = ClipBullets;
function reload(){
WaitForSeconds(reloadTime);
CurrentBullets = ClipBullets;
Clips--;
}
function Update(){
if(CurrentBullets = 0;){
reload();
}
if(CurrentBullets < ClipBullets Input.GetKeyDown(KeyCode.R)){
reload();
}
}
The Erros areExpecting: ) Found: =
Unexpected Token: Zero
Expecting: : Found: ;
The first two are for if(CurrentBullets = 0){
The last one is forreload();