why isn't this working??
PHP Code:
function onCreated(){
this.on = false;
}
function onWeaponFired(){
if (this.on = false){
this.on = true;
}
if (this.on = true){
this.on = false;
}
}
function onCreated(){
setTimer(.1);
}
function onTimeout(){
if (this.on = true){
player.alpha = 50;
}
if (this.on = false){
player.alpha = 100;
}
setTimer(.1);
}