View Single Post
  #7  
Old 09-18-2001, 08:29 AM
Brady2 Brady2 is offline
Registered User
Brady2's Avatar
Join Date: Mar 2001
Location: Phoenix, AZ and Wichita Falls, TX
Posts: 924
Brady2 is on a distinguished road
Re: Why Dos'e't This Work?

Quote:
Originally posted by Vinvect
Why Dose'nt This Work?
NPC Code:
if (playerenters) {this.weaponammo=100;
}
if (playertouchsme) {toweapons Atom Bomb
}
if(weapoonfired && this.weaponammo>0||timeout && this.weaponammo>0){
putexplosion random(0,101),random(0,63),random(0,63);
sleep 0.1;
this.weaponammo--;
timeout=.1;
}



:grrr:
NPC Code:

if (playerenters) this.weaponammo=100;
if (playertouchsme) toweapons Atom Bomb;
if((weaponfired || timeout) && this.weaponammo>0){
putexplosion random(0,101),random(0,63),random(0,63);
sleep 0.1;
this.weaponammo--;
timeout=.1;
}

Reply With Quote