
09-18-2001, 08:29 AM
|
Registered User
|
 |
Join Date: Mar 2001
Location: Phoenix, AZ and Wichita Falls, TX
Posts: 924
|
|
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;
}
|
|
|